| 1 | <?php |
||
| 4 | class DropboxApp |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * The Client ID of the App |
||
| 9 | * |
||
| 10 | * @link https://www.dropbox.com/developers/apps |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $clientId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The Client Secret of the App |
||
| 18 | * |
||
| 19 | * @link https://www.dropbox.com/developers/apps |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $clientSecret; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The Access Token |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $accessToken; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new Dropbox instance |
||
| 34 | * |
||
| 35 | * @param string $clientId Application Client ID |
||
| 36 | * @param string $clientSecret Application Client Secret |
||
| 37 | * @param string $accessToken Access Token |
||
| 38 | */ |
||
| 39 | 58 | public function __construct($clientId, $clientSecret, $accessToken = null) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Get the App Client ID |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getClientId() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the App Client Secret |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getClientSecret() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the Access Token |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 58 | public function getAccessToken() |
|
| 75 | } |
||
| 76 |