I search everywhere and could not find a suitable example, and I do not understand it enough to be able to sort it through documents. Can anyone with more knowledge than show me how to form a CURL team for OAUTH 2? And do I only need the OAUTH 2 secret key? They show me the application key, the application secret, and oauth 2. I use this in a perl script, if that matters.
The closest code I found is the following:
curl --request PUT --header "Content-Length: `ls -la jonathan.txt | awk '{ print $5}'`" --header "Content-Type: multipart/mixed" --data-binary "@jonathan.txt" "https://api- content.dropbox.com/1/files_put/dropbox/jonathan.txt?access_token=ABCDEF"
But I don't think this is OAUTH 2?
source share