public function getAccessToken()
    {
        // Get the signed request URL
        $response = $this->fetch('POST', API::API_URL, self::ACCESS_TOKEN_METHOD);
        $token = $this->parseTokenString($response['body']);
        $this->storage->set($token, 'access_token');
    }
public function getAccessToken()
    {
        // Get the signed request URL
        $response = $this->fetch('POST', API::API_URL, self::ACCESS_TOKEN_METHOD);
        $token = $this->parseTokenString($response['body']);
        $this->storage->set($token, 'access_token');
    }
public function getAccessToken ( ) { // Get the signed request URL $ response = $ this -> fetch ( 'POST' , API :: API_URL , self :: ACCESS_TOKEN_METHOD ) ; $ token = $ this -> parseTokenString ( $ response [ 'body' ] ) ; $ this -> storage -> set ( $ token , 'access_token' ) ; }
Acquire an access token
Tokens acquired at this point should be stored to
prevent having to request new tokens for each API call
@link http://tools.ietf.org/html/rfc5849#section-2.3
Acquire an access token Tokens acquired at this point should be stored to prevent having to request new tokens for each API call