Category : dropbox

i have this string like below: {"crc_file_id":"s1651234q2036773u396340d338552t1616900170273","size":"39216","mime_type":"image/jpeg","upload_path":"/RIM","filename":"RIMs1651234q2036773u396340d338552t1616900170273.jpg","dbx_hash":"f26d920f3021d3dd11a5c1b3953e636fb3e91dfe282699483d894c3cd08540c6","crc_file_transfer_type":"dropbox","link":"https://dl.dropboxusercontent.com/s/1q978ymligfzhbr/RIMs1651234q2036773u396340d338552t1616900170273.jpg"} How i can trim the line like this: RIMs1651234q2036773u396340d338552t1616900170273.jpg or https://dl.dropboxusercontent.com/s/1q978ymligfzhbr/RIMs1651234q2036773u396340d338552t1616900170273.jpg Thank You Sourc..

Read more

I am using https://github.com/spatie/dropbox-api for dropbox Api and it does work fine, however when trying to download a file, it does returns a stream resource, and i tried using https://laravel.com/docs/8.x/responses#streamed-downloads return response()->streamDownload(function () { $token = "TOKEN"; $client = new SpatieDropboxClient($token); $entries = $client->listFolder(‘Songs’); $fileId = $entries[‘entries’][4][‘id’]; echo stream_get_contents($client->download($fileId)); }, ‘file.wav’); and normal stream() but ..

Read more

I am an old school developer with experience using PHP and Javascript. In the past, I have used CDN to link my libraries with a script tag in my PHP script. For example: <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script> to include the jquery UI library. For a couple of years, I’ve had access to a CDN to ..

Read more

I am using the library: Kunnu I am writing this code: namespace KunnuDropbox; require __DIR__.’/vendor/autoload.php’; $app = new DropboxApp(‘AppName’, ‘AppSecret’, ‘AppToken’); $dbx = new Dropbox($app); var_dump($dbx->getAccounts()); Displays an error: Fatal error: Uncaught GuzzleHttpExceptionClientException: Client error: POST https://api.dropboxapi.com/2/users/get_account_batch resulted in a 400 Bad Request response: Error in call to API function "users/get_account_batch": Your app is not ..

Read more