cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth 2.0 access token unsuccessful manual client

womelsdorf14 New member | Level 2
New member | Level 2

Hello,

 

I am new to using the API so please bear with me if this is an easy fix. I am trying to do a simple file upload on a button click in Swift. This application is going to be for personal use so I am okay with setting the client with my personal access token.

 

When I sign in via the browser method as indicated under the "authorixation" button method, I successfully see the 'authorized' file in my dropbox.

 

When I try to use my personal token under the myToken button method, nothing is uploaded to my dropbox.

 

I followed all of the tutorial steps in http://dropbox.github.io/SwiftyDropbox/api-docs/latest/#upload-style-request and have viewed all similar questions in the community but have not had any luck. I have also tried regenerating my access token and had no luck.

 

Thanks in advance for your help!

 

 

image.pngimage.png

1 Reply 1

Re: OAuth 2.0 access token unsuccessful manual client

Dropboxer
Dropboxer
Are you getting any output from your .response or .progress blocks?

It's possible that your 'client' object is going out of scope before the API call can complete. Please try storing the client as a property outside of that @IBAction func to fix that if so.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?