You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

snigdhakadam's avatar
snigdhakadam
Explorer | Level 3
7 years ago

Webhook functionality implementation.

Hello,

 

I want to implement Webhook functionality. I don't have server for my website right now. So created Webhook URI on other's server e.g " https://www.example.com/webhook_test_uri ". I created get & post method there. I verify the request by echoing value of challenge parameter & my URI get enabled.  My OAuth2  redirect API is "http://127.0.0.1:8000/dropbox_auth" & Webhook URI is "https://www.example.com/webhook_test_uri".

 

When I make any changes in dropbox, it is not sending me data on above Webhook URI.

I am not getting what is wrong in this? Please suggest me.

 

Thanks,

  • Anastasios's avatar
    Anastasios
    Collaborator | Level 9

    Do you have admin access rights to the other server?

     

    The URI needs to be one publicly accessible over the internet. For example, 127.0.0.1 and localhost URIs will not work, since Dropbox's servers will not be able to contact your local computer.

     

    Check this for more info

    • snigdhakadam's avatar
      snigdhakadam
      Explorer | Level 3

      I have admin access rights to the other server. So I have added valid Webhook URI of other server not localhost. My Webhook URI is enabled.

      Then also it is not giving response on that post method.

       

      My Oauth redirect URL is localhost.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Webhook notifications will only be sent for changes in the accounts of users that are "linked" to your app. Can you check that you have linked your account to your app and that you are making changes in that account?

    • snigdhakadam's avatar
      snigdhakadam
      Explorer | Level 3

      Thanks for reply.

      I followed following steps:

      1. I have created application on dropbox with full access.

      2. I created web application & I follwed OAuth 2 Flow.

      3. Then I was able to access my  all dropbox files. I was able to upload, download, rename etc operation on the files.

      4. I have created one Webhook URI  on my other server(My Website code is not resides on this server). I have added this URI in application & this URI has enabled.

       

      I am making changes in this same dropbox acccount(which I have chosen while OAuth 2 Flow).  But I am not getting changed information on specified URI.

      Please suggest me if I wrong.

       

      Many Thanks,

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 33 minutes ago
334 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!