Have done that and guessed I then put the --header and the "Authorization: Bearer " \ in this box?
I know I need my access token, when I click he link it changes to a really long random number. Do I remove the " " marks at each end and the trailing slash \
OK, great. Tried that but when I Fetch Schema in Schema Editor it says I have a folder conflict.
In the "{"autorename":false,"path":"/Homework/math"}" I changed the /Homework/math\ to the location where I want to create the new folder "{"autorename":false,"path":"/MyFolder/Test1"}"
See the screenshot above.
Defining a schema is not needed for the API call to work, the schema is used in the data picker, so that you can use the info returned from the API in the next steps, for example:
I have no idea then... The text in the Dropbox return is way longer than what you posted so did you edit yours or something, and if I don't use the define api schema what do I do?
All I want to do is to be able to collect some data from a form and use it to create folder in Dropbox, wuld you be able to create tutial or video for me please?
Sorry i don't understand what you mean here.
I already explained you how to use the define schema and provided you the json you need to paste there.
We can't create a tutorial for every single API out there. The basics are already explained, you just follow the docs of the API.
Simply use the dynamic data picker add the dynamic data you need there ...
I finally figure out what I needed to do by trial and error and the details you gave.
One issue I'm now faced with is the access_token which expires very quickly, I need to work out how best to update token in the Authorization header each time the API action run, any idea?
The access token you generate in you app settings is a short lived token, which is only used for testing. Depending on what will you app do, you need to follow the instructions in the dropbox API docs. A good explanation/starting point is:
The DropBox OAuth2 can present the token I need in a URL, how would I grab that token string from the URL an place it into a hidden input in my form which I can then grab in the API action?
You should never deal with access tokens on the front end. This must all happen in the back end - in the server connect.
You need a refresh token from dropbox, from what i read in the docs the refresh token does not expire. Once you have it, you can get access token which is then used in the API call for creating the folder. The access token lasts for 4 hours. You can just edit your server action to request a new access token every time you user submits the form.
So the server action can be built this way: use refresh token to call access token endpoint > get access token > with the access token call create the folder