public function revoke(AccessToken $accessToken)
    {
        $options = $this->getAccessTokenOptions([]);
        $uri = $this->appendQuery(
            self::BASE_FITBIT_API_URL.'/oauth2/revoke',
            $this->buildQueryString(['token' => $accessToken->getToken()])
        );
        $request = $this->getRequest(self::METHOD_POST, $uri, $options);

        return $this->getResponse($request);
    }
public function revoke(AccessToken $accessToken)
    {
        $options = $this->getAccessTokenOptions([]);
        $uri = $this->appendQuery(
            self::BASE_FITBIT_API_URL.'/oauth2/revoke',
            $this->buildQueryString(['token' => $accessToken->getToken()])
        );
        $request = $this->getRequest(self::METHOD_POST, $uri, $options);

        return $this->getResponse($request);
    }
public function revoke ( AccessToken $ accessToken ) { $ options = $ this -> getAccessTokenOptions ( [ ] ) ; $ uri = $ this -> appendQuery ( self :: BASE_FITBIT_API_URL . '/oauth2/revoke' , $ this -> buildQueryString ( [ 'token' => $ accessToken -> getToken ( ) ] ) ) ; $ request = $ this -> getRequest ( self :: METHOD_POST , $ uri , $ options ) ; return $ this -> getResponse ( $ request ) ; }
Revoke access for the given token.

@param AccessToken $accessToken

@return mixed
Revoke access for the given token .