Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I have try to use the way I was told in my previous ticket.
try{
$client->request('POST', config('providers.providers.dropbox.create_shared_link'),
[
'headers'=>
[
'Authorization'=>'Bearer '.$acc_token,
'Content-Type' => 'application/json',
],
'body'=>json_encode($parameters)
]);
}catch(ClientException $exception){
$url = json_decode($exception->getResponse()->getBody(), true)['error']['shared_link_already_exists']['metadata']['url'];
$url = str_replace('dl=0', 'dl=1', $url);
return $url;
}
However, sometime endpoint is not responding anything either in call or exception. Need to solve this issue.
Looking at your code, a few things come to mind:
In any case, I recommend stepping through with a debugger to see exactly where code execution is going. If you're getting any unexpected error or output from the Dropbox API itself, share it here so we can look into it.
Hi @bhuwan,
In your code shared link existence is expected! Right? What about if such link don't exist yet and is just created?!
Hope this gives some direction.
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!