<?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: webhook tutorial in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578599#M27007</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1506044"&gt;@af11&lt;/a&gt; As Здравко indicated, it sounds like you're referring to &lt;A href="https://github.com/dropbox/mdwebhook/blob/master/app.py#L47" target="_self"&gt;the "welcome" definition in app.py in the mdwebhook project&lt;/A&gt;, which is used for the "/welcome" route.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That route in particular is used as &lt;A href="https://github.com/dropbox/mdwebhook/blob/74d62ebe8007e94016f818d1bc752632eba2825b/app.json#L7" target="_self"&gt;the "success_url" for the app in the app.json&lt;/A&gt; (for &lt;A href="https://devcenter.heroku.com/articles/app-json-schema#success_url" target="_blank"&gt;Heroku deploys&lt;/A&gt;).&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 16:22:44 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-02-17T16:22:44Z</dc:date>
    <item>
      <title>webhook tutorial</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578517#M27005</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm following the webhook tutorial using the Python SDK.&lt;/P&gt;
&lt;P&gt;There is a url and function 'welcome'.&lt;/P&gt;
&lt;P&gt;However, I don't see it being used anywhere in the app.&lt;/P&gt;
&lt;P&gt;Can you please clarify what the purpose of it is if it's not being used anywhere?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:50:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578517#M27005</guid>
      <dc:creator>af11</dc:creator>
      <dc:date>2022-04-27T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: webhook tutorial</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578575#M27006</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1506044"&gt;@af11&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you aware of 'annotations' in Python? 🧐 I suppose you got confused on following point in code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@app.route('/welcome')
def welcome():
    return render_template('welcome.html', redirect_url=get_url('oauth_callback'),
        webhook_url=get_url('webhook'), home_url=get_url('index'), app_key=APP_KEY)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the leading "@app.route('/welcome')" for? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Try investigate meaning of following parts of the code, denoted here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#...
from flask import abort, Flask, redirect, render_template, Response, request, session, url_for
#...
app = Flask(__name__)
#...
​if __name__=='__main__':
    app.run(debug=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the same context, where following functions get called from: oauth_callback, process_user, &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;/SPAN&gt;, etc. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:48:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578575#M27006</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-02-17T13:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: webhook tutorial</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578599#M27007</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1506044"&gt;@af11&lt;/a&gt; As Здравко indicated, it sounds like you're referring to &lt;A href="https://github.com/dropbox/mdwebhook/blob/master/app.py#L47" target="_self"&gt;the "welcome" definition in app.py in the mdwebhook project&lt;/A&gt;, which is used for the "/welcome" route.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That route in particular is used as &lt;A href="https://github.com/dropbox/mdwebhook/blob/74d62ebe8007e94016f818d1bc752632eba2825b/app.json#L7" target="_self"&gt;the "success_url" for the app in the app.json&lt;/A&gt; (for &lt;A href="https://devcenter.heroku.com/articles/app-json-schema#success_url" target="_blank"&gt;Heroku deploys&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:22:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/webhook-tutorial/m-p/578599#M27007</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-17T16:22:44Z</dc:date>
    </item>
  </channel>
</rss>

