src/Dropbox/Authentication/OAuth2Client.php
public function revokeAccessToken()
    {
        //Access Token
        $accessToken = $this->getApp()->getAccessToken();

        //Request
        $request = new DropboxRequest("POST", "/auth/token/revoke", $accessToken);
        // Do not validate the response
        // since the /token/revoke endpoint
        // doesn't return anything in the response.
        // See: https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
        $request->setParams(['validateResponse' => false]);

        //Revoke Access Token
        $this->getClient()->sendRequest($request);
    }
public function revokeAccessToken()
    {
        //Access Token
        $accessToken = $this->getApp()->getAccessToken();

        //Request
        $request = new DropboxRequest("POST", "/auth/token/revoke", $accessToken);
        // Do not validate the response
        // since the /token/revoke endpoint
        // doesn't return anything in the response.
        // See: https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
        $request->setParams(['validateResponse' => false]);

        //Revoke Access Token
        $this->getClient()->sendRequest($request);
    }
public function revokeAccessToken ( ) { //Access Token $ accessToken = $ this -> getApp ( ) -> getAccessToken ( ) ; //Request $ request = new DropboxRequest ( "POST" , "/auth/token/revoke" , $ accessToken ) ; // Do not validate the response // since the /token/revoke endpoint // doesn't return anything in the response. // See: https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke $ request -> setParams ( [ 'validateResponse' => false ] ) ; //Revoke Access Token $ this -> getClient ( ) -> sendRequest ( $ request ) ; }
Disables the access token

@return void
Disables the access token