Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Wouter V.'s avatar
Wouter V.
Explorer | Level 4
10 years ago
Solved

Obj-C API-2 equivalent of client.create_oauth2_access_token()

What is the Obj-C API-2 equivalent of the (for example, from python) client.create_oauth2_access_token() ?

 

i.e. how to automatically (for the user) transition an OAuth 1 token to OAuth 2 token?

 

Thanks

  • Greg-DB's avatar
    Greg-DB
    10 years ago
    Great, that shouldn't be a problem. That endpoint should be implemented in the SDK the next time the SDK is regenerated and released, which should be well before June.

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    The create_oauth2_access_token method in the Python SDK for API v1 uses the /1/oauth2/token_from_oauth1 endpoint, which is signed with OAuth 1. You can continue using this method/endpoint while API v1 is available

     

    The Official Objective-C SDK for Dropbox API v2 only uses OAuth 2, so it can't use that endpoint. 

     

    We did recently introduce a new API v2 endpoint, /2/auth/token/from_oauth1, to support this OAuth 1 access token to OAuth 2 access token in migration, but that hasn't been added to the SDK yet. 

  • Wouter V.'s avatar
    Wouter V.
    Explorer | Level 4
    10 years ago

    Hi Greg, thanks for the reply.

     


    We did recently introduce a new API v2 endpoint, /2/auth/token/from_oauth1, to support this OAuth 1 access token to OAuth 2 access token in migration, but that hasn't been added to the SDK yet. 


    If it is planned, I'd be happy to wait. We have some time before June 2017. It would safe us thousands of support emails.

     

    Wouter

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago
    Great, that shouldn't be a problem. That endpoint should be implemented in the SDK the next time the SDK is regenerated and released, which should be well before June.
  • Wouter V.'s avatar
    Wouter V.
    Explorer | Level 4
    10 years ago

    Happy ending for Obj-C after all. That's great thanks.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!