mnib-dev/spatie-dropbox-api-refreshable-token

Generate access token from refresh token for spatie/dropbox-api

v0.1 2022-11-24 14:56 UTC

This package is auto-updated.

Last update: 2025-03-24 19:49:28 UTC


README

How to get refresh token

<?php

declare(strict_types=1);

$appKey = '';
$appSecret = ''; 
$refreshToken = '';

$tokenProvider = new AutoRefreshableTokenProvider($appKey, $appSecret, $refreshToken);
$dropboxClient = new Spatie\Dropbox\Client($tokenProvider);