private function parseTokenString($response)
    {
        $parts = explode('&', $response);
        $token = new \stdClass();
        foreach ($parts as $part) {
            list($k, $v) = explode('=', $part, 2);
            $k = strtolower($k);
            $token->$k = $v;
        }
        return $token;
    }
private function parseTokenString($response)
    {
        $parts = explode('&', $response);
        $token = new \stdClass();
        foreach ($parts as $part) {
            list($k, $v) = explode('=', $part, 2);
            $k = strtolower($k);
            $token->$k = $v;
        }
        return $token;
    }
private function parseTokenString ( $ response ) { $ parts = explode ( '&' , $ response ) ; $ token = new \ stdClass ( ) ; foreach ( $ parts as $ part ) { list ( $ k , $ v ) = explode ( '=' , $ part , 2 ) ; $ k = strtolower ( $ k ) ; $ token -> $ k = $ v ; } return $ token ; }
Parse response parameters for a token into an object
Dropbox returns tokens in the response parameters, and
not a JSON encoded object as per other API requests
@link http://oauth.net/core/1.0/#response_parameters
@param string $response
@return object stdClass
Parse response parameters for a token into an object Dropbox returns tokens in the response parameters and not a JSON encoded object as per other API requests