You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Jeff B.63
2 years agoCollaborator | Level 8
Get a folders public link using the dropbox API in Azure logic apps
We use Dropbox to store pictures from every jobsite we work on. The estimator puts his pics in the folder for the crews to view and later the crews put their images in the same folder. I have been ...
- 10 months ago
Jeff B.63 wrote:The example in the blog uses curl but I need HTTP. I tried the online conversion tool from GitHub but it just gets syntax errors. ...
Hi Jeff B.63,
You can add -v option (verbose) in every curl command and you'll get entire HTTP request in the console output as is. 😉
Jeff B.63 wrote:... I have my AppKey and AppSecret but what is the authorization code and do I need a redirect URI since I want the response to come right back to the HTTP request?
The authorization code is something you should receive from the authorization page where you (or your application user - whoever is) grant permission to access account resources. It can be copied by hand or received automatic using redirect URI - the choice is yours. So, no, it's not mandatory usage of redirect URI. Take a look here how you can perform the same without redirect URI.
Hope this helps.
Jeff B.63
Collaborator | Level 8
This is a little outside my wheelhouse but I am giving it a go. This is what I have tried but something is wrong and I am not sure if I am on the right track or not. Some guidance would be appreciated.
Here is the raw input:
{
"method": "GET",
"queries": {
"direct_only": "true",
"path": "/~ Pictures - All/2023/236056 - 459 Jellicoe Cres/"
},
"headers": {
"Authorization": "*sanitized*",
"Content-Type": "application/json"
}
}
And here is the raw output:
{
"statusCode": 404,
"headers": {
"Date": "Mon, 24 Apr 2023 20:37:35 GMT",
"Server": "envoy",
"Vary": "Accept-Encoding",
"X-Dropbox-Response-Origin": "far_remote",
"X-Dropbox-Request-Id": "43295fb3e28a44578e11c9600a9e2579",
"Transfer-Encoding": "chunked",
"Content-Type": "text/html"
},
Error (404) We can't find the page you're looking for.
}
Здравко
2 years agoLegendary | Level 20
Jeff B.63, Take a look on documentation! There POST request is always used. 🙋 GET is not for listing. The call parameters have to reside in request body, JSON encoded (as you correctly have specified in a header). Where is this JSON right now? 🧐😉
- Greg-DB2 years agoDropbox Staff
Jeff B.63 As Здравко noted, your request is not formatted properly. You can find information on how to call the endpoint in the documentation. The API v2 Explorer can also be useful for prototyping these calls; you can click "Show Code" to see how the call would be constructed in a few different clients.
- Jeff B.6310 months agoCollaborator | Level 8
After a long while I am finally getting back to this issue.
I have tried the API v2 Explorer and can get the call to work but when I view the code for HTTP, my logic app has all the same content with the exception of User-Agent which in the Explorer shows as
User-Agent: api-explorer-client
Do I need to insert my own API name in there for the app that I created and has the same API Key?
- Greg-DB10 months agoDropbox Staff
Jeff B.63 Здравко is correct; while the 'User-Agent' value is meant to contain the app's name, it does not impact the functionality of the API call.
If the call is still not working for you, make sure the app is formatting the request correctly. It may help to print out the actual HTTP request, if possible. (If you share that here, be sure to continue to redact the access token though.)
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 12 hours agoIf 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 or Facebook.
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!