Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (67 sloc) 1.36 KB
<?php
namespace Kunnu\Dropbox;
class DropboxApp
{
/**
* The Client ID of the App
*
* @link https://www.dropbox.com/developers/apps
*
* @var string
*/
protected $clientId;
/**
* The Client Secret of the App
*
* @link https://www.dropbox.com/developers/apps
*
* @var string
*/
protected $clientSecret;
/**
* The Access Token
*
* @var string
*/
protected $accessToken;
/**
* Create a new Dropbox instance
*
* @param string $clientId Application Client ID
* @param string $clientSecret Application Client Secret
* @param string $accessToken Access Token
*/
public function __construct($clientId, $clientSecret, $accessToken = null)
{
$this->clientId = $clientId;
$this->clientSecret = $clientSecret;
$this->accessToken = $accessToken;
}
/**
* Get the App Client ID
*
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* Get the App Client Secret
*
* @return string
*/
public function getClientSecret()
{
return $this->clientSecret;
}
/**
* Get the Access Token
*
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
}
You can’t perform that action at this time.