<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Any ArcGIS Online Webhook tutorials for Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1266860#M8490</link>
    <description>&lt;P&gt;Thanks, have been laid low with an achillies tendon break and covid and family cancer. Back soon.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2023 22:33:43 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2023-03-11T22:33:43Z</dc:date>
    <item>
      <title>Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1209242#M7703</link>
      <description>&lt;P&gt;Just curious. Mostly what I find are webhook tutorials that use Integramat as the processing app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly I just find the way the webhooks for AGOL work weird compared to others I've used. It seems to send a URL. If I manually go to that URL, it brings me to a search page that has another URL at the bottom. If I go to that URL it takes me to yet another, but more specific, search page, with another URL at he bottom. Its only when I click that URL that I finally get the JSON for the change that was made that triggered the webhook. I mean, I can write something that parses through all that to get the URLs I need, but is that necessary? Is there a simpler way to just directly get the JSON?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 17:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1209242#M7703</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-09-02T17:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1209316#M7704</link>
      <description>&lt;P&gt;Looks like a similar question, though not Python specific, was asked a few weeks ago in the &lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcgis-online-hosted-feature-layer-webhooks-why/m-p/1200796" target="_blank" rel="noopener"&gt;ArcGIS Online Developers Questions community&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sounds like development is in the works on how webhooks in AGOL work, but no word on when that will be released. So for now, I guess my question still stands. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1209316#M7704</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-09-02T19:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210406#M7717</link>
      <description>&lt;P&gt;So here is some samples of how to write code for webhooks at the Esri GitHub as well as some nice explainations:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/webhooks-samples" target="_blank"&gt;https://github.com/Esri/webhooks-samples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This link shows some code in combination with using Arcade:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/developers/integrating-the-arcgis-api-for-python-and-survey123-with-azure-functions/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/api-python/developers/integrating-the-arcgis-api-for-python-and-survey123-with-azure-functions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This following links take you to the Python API resource, where they have actual examples of how to write code for certain functions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#webhookmanager:~:text=for%20a%20Portal-,WebhookManager,%C2%B6,-class%20arcgis.gis" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#webhookmanager:~:text=for%20a%20Portal-,WebhookManager,%C2%B6,-class%20arcgis.gis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#webhook:~:text=returns%3A%20dict-,Webhook,%C2%B6,-class%20arcgis.gis" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#webhook:~:text=returns%3A%20dict-,Webhook,%C2%B6,-class%20arcgis.gis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here are some code samples from users who have created their own python webhook workflows this includes workflows to grab the JSON and such:&lt;/P&gt;&lt;P&gt;&lt;A href="https://programtalk.com/vs4/python/Esri/webhooks-samples/sample-workflows/slack/admin_assistant.py/" target="_blank"&gt;https://programtalk.com/vs4/python/Esri/webhooks-samples/sample-workflows/slack/admin_assistant.py/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://programtalk.com/vs4/python/Esri/webhooks-samples/sample-workflows/python-email/webhookListener.py/" target="_blank"&gt;https://programtalk.com/vs4/python/Esri/webhooks-samples/sample-workflows/python-email/webhookListener.py/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://programtalk.com/vs4/python/Esri/webhooks-samples/" target="_blank"&gt;https://programtalk.com/vs4/python/Esri/webhooks-samples/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope some of this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210406#M7717</guid>
      <dc:creator>BlueBunnies</dc:creator>
      <dc:date>2022-09-07T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210586#M7718</link>
      <description>&lt;P&gt;And now I'm curious if something happened over the long Labor Day holiday in the U.S., as once again, I find myself in a position where work I did last week isn't working now. This webhook is sending to some basic code, example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import azure.functions as func
import logging
import requests
import json
from pprint import pprint

def main(req: func.HttpRequest) -&amp;gt; str:
    jsonString = req.get_json()
    logging.error("Webhook JSON:")
    logging.error(pprint(jsonString))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What gets printed out is nothing. Or more specifically: None.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="webhookerror.png" style="width: 514px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50689i04C35F84665175D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="webhookerror.png" alt="webhookerror.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No changes from last week, when this happily printed out the json sent from the webhook. I'm finding the AGOL webhooks really flaky.&lt;/P&gt;&lt;P&gt;Edit - Figured I'd add this screenshot, in case anyone could see if I've screwed something up more fundamentally, here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="webhook.png" style="width: 867px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50691iADC5500F10BE177A/image-size/large?v=v2&amp;amp;px=999" role="button" title="webhook.png" alt="webhook.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 22:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210586#M7718</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-09-07T22:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210745#M7725</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/528945"&gt;@RogerAsbury&lt;/a&gt;&amp;nbsp; to answer your first question about getting the information from Extract Changes -- I'm not aware of any changes coming to this workflow. The webhook is purposely sent with what has been termed as a "skinny payload". Basically, a small payload &lt;EM&gt;without&lt;/EM&gt; sensitive information inside. This is grounded in both performance and security reasons. I do sympathize that it takes a few steps to go back and grab what actually happened via the API.&lt;/P&gt;&lt;P&gt;I'm glad you and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/614834"&gt;@BlueBunnies&lt;/a&gt;&amp;nbsp;have found the github samples. Debugging Azure can be challenging sometimes, but it looks like you found the real time console. My suggestion if things aren't making sense in Azure, switch the payload URL to some place like&amp;nbsp;&lt;A href="https://webhook.site/" target="_blank"&gt;https://webhook.site/&lt;/A&gt;&amp;nbsp;This is a great resource for quick tests. It takes the code and complexity out of grabbing those payloads.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210745#M7725</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2022-09-08T13:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210753#M7726</link>
      <description>&lt;P&gt;One other thing - would it be helpful if I added a Python sample for the Extract Changes workflow? Every so often I hear about this want, and I'd like to do it, but it falls off my priority list. It's possible someone has already written the code (so a matter of finding it), but either way, if it would be useful, I'd try to get it created as a sample in the mentioned repo.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210753#M7726</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2022-09-08T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210872#M7727</link>
      <description>&lt;P&gt;I guess to be more specific: What I'm asking is if something has changed with how webhooks work between last Friday and today, because code that worked then doesn't seem to work now. I'm totally willing to accept that a change has occurred in one of the imported libraries, lord knows, that's happened before. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, just a tad frustrated that a process that seems so easy in one ESRI product (Survey123) is decidedly not in another, so my apologies if I come across a bit cranky. On the other hand, this isn't for anything production, I'm just trying things out to learn them. And that list of github samples was awesome.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210872#M7727</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2022-09-08T17:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210936#M7729</link>
      <description>&lt;P&gt;I'm getting webhooks sent from a couple of different Orgs/FeatureServices I have on arcgis.com.&lt;/P&gt;&lt;P&gt;From your screen shot, you have Active:True and accepting any changes ("*"). So everything looks good.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 20:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1210936#M7729</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2022-09-08T20:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1218853#M7850</link>
      <description>&lt;P&gt;I am searching for a working example of extract_changes() too. I cannot understand the error messages. I did see a post from 2020 where it does not accept defaults as documented, you have to add in the URI for example.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 22:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1218853#M7850</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2022-10-04T22:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1219037#M7854</link>
      <description>&lt;P&gt;Kim,&lt;/P&gt;&lt;P&gt;I've attached a zip file with my progress on this. I'll note it's not quite complete, but offers the code you'll need to perform extract changes. (Specifically, I didn't complete the authentication to ArcGIS.com, the code assumes the service is publicly accessible). I'm trying to support both Online FS webhooks and Enterprise FS webhooks in the same script, so it needs to handle connecting to both.&lt;/P&gt;&lt;P&gt;You'll want to start in the&amp;nbsp;&lt;STRONG&gt;agol_receiver.py&lt;/STRONG&gt; -- all this does is grabs a JSON value and launches the workflow. In production, this would act as the webhook receiver and handle requests in real-time, but for this, it's just the entry way to test.&lt;/P&gt;&lt;P&gt;Inside&amp;nbsp;&lt;STRONG&gt;extractChanges.py&lt;/STRONG&gt; you'll see the basic workflow (start at the bottom).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps. When I get it finished up, I'll add it to the previously mentioned github repo.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 16:57:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1219037#M7854</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2022-10-05T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Any ArcGIS Online Webhook tutorials for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1266860#M8490</link>
      <description>&lt;P&gt;Thanks, have been laid low with an achillies tendon break and covid and family cancer. Back soon.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 22:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/any-arcgis-online-webhook-tutorials-for-python/m-p/1266860#M8490</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2023-03-11T22:33:43Z</dc:date>
    </item>
  </channel>
</rss>

