Access Dropbox Api without client authentication?

I am trying to create a smooth file sharing solution with custom file presentation (logos, etc.).

My ideal would be to put the files in the Dropbox folder, and then have the web page on a separate server, access these files through javascript and display a list of them related to the actual files.

The requirement is that the end user does not have to authenticate with acocunt to delete files in order to access the files. I would prefer to use a shared folder or use files from another account.

Is there a way to support an auth-session server session, something like a persistent sessionID or something like that?

+6
source share
1 answer

Just authenticate once, confirm your application, get your authentication key and in the code:

$dbxClient = new dbx\Client($accessToken, "PHP-Example/1.0"); $accountInfo = $dbxClient->getAccountInfo(); print_r($accountInfo); 

Edit:

 $accessToken to "{Your auth key}" 

or put the line:

 $accessToken = "{authentication code here}"; 

over this code.

+8
source

Source: https://habr.com/ru/post/956876/


All Articles