cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

getting shared_folder_id

getting shared_folder_id

emeraldmedia
New member | Level 2

hey guys im trying to get shared_folder_id from the API and im using the below 

 

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $auth_token, 'Content-Type: application/json'));
//curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($fields));
curl_setopt($ch, CURLOPT_URL, 'https://api.dropboxapi.com/2/sharing/list_folders');

 

try{
$result = curl_exec($ch);
} catch (Exception $e) {
echo 'Exception reçue : ', $e->getMessage(), "\n";
}
var_dump($result);

 

 

however all i get is :

 

Array ( [error_summary] => missing_scope/ [error] => Array ( [.tag] => missing_scope [required_scope] => sharing.read ) )

 

 

 

despite the app having sharing.read enabled 

 

 

thanks !

 

1 Reply 1

Re: getting shared_folder_id

Greg-DB
Dropboxer

The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.

 

That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope. Please refer to the OAuth Guide and authorization documentation for more information.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?