Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi , I am making an api call to
Here is How root folder looks like
and images folder looks like this
and here is my php code
<?php require 'curl/autoload.php'; use GuzzleHttp\Client; if(isset($_GET['code'])) { $auth_code = $_GET['code']; $client = new \GuzzleHttp\Client(); $res = $client->request('POST', 'https://api.dropboxapi.com/oauth2/token', [ 'form_params' => [ 'code' => $auth_code, 'grant_type' => 'authorization_code', 'client_id'=>'0r9hh54ybs8xxxx', 'client_secret'=>'5i3rlsio4zvxxxx', 'redirect_uri'=>'http://localhost/dbru/db_auth.php' ] ]); $cont = $res->getBody()->getContents(); $access_token=json_decode($cont,true); $access_token = $access_token['access_token']; $res = $client->request('POST', 'https://api.dropboxapi.com/2/files/list_folder', [ 'headers'=>[ 'Authorization'=> 'Bearer '.$access_token, "Content-Type"=> "application/json" ], 'json' => [ "path"=>"/images", "recursive"=> false, "include_media_info"=> false, "include_deleted"=> false, "include_has_explicit_shared_members"=> false, "include_mounted_folders"=> true ] ]); $cont = $res->getBody()->getContents(); echo '<pre>',print_r($cont); } ?>
and it's giving me following error
POST https://api.dropboxapi.com/2/files/list_folder` resulted in a `409 Conflict` response: {"error_summary": "path/not_found/..", "error": {".tag": "path", "path": {".tag": "not_found"
Hi there!
If you need more help you can view your support options (expected response time for a 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!