define('REQUEST_TOKEN_DURATION', 300);
define('ACCESS_TOKEN_DURATION', 31536000);
-require_once 'include/dba.php';
-
/**
* @brief OAuthDataStore class
*/
/**
* @param string $consumer_key key
* @return mixed
+ * @throws \Exception
*/
public function lookup_consumer($consumer_key)
{
* @param string $token_type type
* @param string $token token
* @return mixed
+ * @throws \Exception
*/
public function lookup_token($consumer, $token_type, $token)
{
* @param string $nonce nonce
* @param string $timestamp timestamp
* @return mixed
+ * @throws \Exception
*/
public function lookup_nonce($consumer, $token, $nonce, $timestamp)
{
* @param string $consumer consumer
* @param string $callback optional, default null
* @return mixed
+ * @throws \Exception
*/
public function new_request_token($consumer, $callback = null)
{
* @param string $consumer consumer
* @param string $verifier optional, defult null
* @return object
+ * @throws HTTPException\InternalServerErrorException
*/
public function new_access_token($token, $consumer, $verifier = null)
{