We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Mark L.45
9 years agoCollaborator | Level 9
shared app directory, exists but inaccessible to my app
Created an app, linked to a specific directory. Lets call it acme.
Create acme directory on my dropbox which I shared and placed some more directories and files within it.
Able to authenticate a...
Mark L.45
9 years agoCollaborator | Level 9
Hi Gregory, I think I have miss-understood a concept here. I create a app that has access across all my files on my dropbox and my app works. I create an app with limited access and I it doesn't. The app itself uses HTTP protocol, so calls much like the one above. After installation the app makes this call.
https://www.dropbox.com/oauth2/authorize?client_id=ID&response_type=token&redirect_uri=https://www.dropbox.com/1/oauth2/redirect_receiver&disable_signup=true&state=" + String(token2Verify))
With a random token, it works and returns an access token I use. Later in the app I make a calls to this routine.
curl -X POST https://api.dropboxapi.com/2/sharing/list_shared_links --header "Authorization: Bearer ab-CODE" --header "Content-Type: application/json" --data "{}"
And it returns nothing as you can see beyond a cursor suggesting there is more? This despite the fact that I have more than a 1000 files within directories in the app directory I named?
{"links": [], "has_more": true, "cursor": "cursor-CODE"}
I clearly missed a detail here? It works if I the app I create has access to all my files, but not if I restrict it to a directory?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 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!