Trying to configure/connect Dropbox API to API Connector

Hello,

I am trying to connect the Dropbox API to the Bubble API connector.

I have been following this thread - https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/6

Trying to implement the solution listed at the bottom of the thread for getting the token, copying similar configuration as per the screenshot:

However, when I try to initialize the token, I get the following error:

There was an issue setting up your call.

Raw response for the API
Status code 400
{“error”: “invalid_request”, “error_description”: “Can’t use "Authorization" header and "client_secret" arg together.”}

I assume it must have something to do with my configuration in the API connector… can anyone take a look and tell me what may be the problem? thanks!

Why did you set refresh token if you also use user agent flow? Bubble will do the refresh process itself. You don’t need to set it
Now, for you auth setting, you didn’t set the profile endpoint. So I guess it’s probably not initialized in run mode? https://api.dropboxapi.com/2/users/get_current_account may work with id set to account_id

Finally, are you trying to let your user authenticate to your app with their own dropbox account or this need to be added to Bubble auth? (in this case, you need to do the WF manually and not using Bubble auth).

1 Like

For this app, we only want to use our internal dropbox account, no user dropbox accounts needed…

I’m not sure about the refresh token… I am just trying to follow what is shown to work for the folks in the previous thread. I think they were having issues getting the automatic refresh process to take place so there was a manual workflow set up to call the token and refresh it…

Maybe I should use the OAuth 2 Custom token Authentication method instead of user agent flow in that case… ??

I changed token_name to access_token and now I get the error

There was an issue setting up your call.

Raw response for the API
Status code 400
{“error”: “invalid_request”, “error_description”: “unknown field "access_token"”}

So in this case, you doesn’t need to use user-auth. If your goal is to just upload to your dropdbox folder instead of Bubble AWS, you should follow the Bubble guide and use the Dropdox plugin made by Bubble. If you need more access, you will need to do each step manually for the authentication because actually, Dropbox doesn’t offer an auth type like client_credentials for this type of use (and I think they no longer offer long live token). Check possible auth to validate this.

Yes I originally wanted to use the Dropbox Plugin, but I’m not sure if it will work for my usecase…

I need to check a certain dropbox folder for new files and then if they are there, I need to process them based on their name. However in the workflow action menu, there is no action to list the contents of the folder…

When I asked the question before, I was told to instead connect dropbox thru the API connector and so here I am…