Forum Discussion

alfazraza's avatar
alfazraza
Explorer | Level 4
8 years ago
Solved

Migrating access token from API v1 to v2

I am using dropbox-core-sdk-3.0.3.jar for api v2 calls.

When I upload my data into specific directory it will perform the uploading process.

 

Then I will manually delete the files which are uploaded in android phone, using web console(Log into account and just deleted). Now when I try to upload the same file it says that  { error_summary:invalid_access_token/.., "error":{".tag":"invalid_access_token"}

 

Please help me out.

  • It sounds like your app uses the "app folder" permission, and you're deleting the app folder itself. Deleting the app folder effectively unlinks the app (since it no longer has anywhere to read/write) and any further API calls will result in that error. 

     

    If you're trying to clear out files, make sure you only delete just the files in the folder, and not the app folder itself.

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

    It sounds like your app uses the "app folder" permission, and you're deleting the app folder itself. Deleting the app folder effectively unlinks the app (since it no longer has anywhere to read/write) and any further API calls will result in that error. 

     

    If you're trying to clear out files, make sure you only delete just the files in the folder, and not the app folder itself.

    • alfazraza's avatar
      alfazraza
      Explorer | Level 4

      Thank you so much for the solution...:)

       

      After Using Api v2 still it shows that "The old version of the dropbox platform  is beign retired on september 28th ....".

      Whther I am doing anythin wrong?

       

      I need to know how to migrate the app key of my old application(which is created under the API V1) to API V2. I have over 500 users connected to my app, what about their files?

       

      I have gone through the documentations but it is not clear.

       

      Please give step by step procedure so I can try.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        To dismiss this message, sign in to the account that owns the relevant app and go to the App Console:

        https://www.dropbox.com/developers/apps

        There will be a banner at the top of the page there where you can "acknowledge" the deprecation to dismiss this message.

        The API v1 deprecation won't affect user files themselves. The files in Dropbox will remain there.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 hours ago
352 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!