public void disableOAuth1AccessToken(DbxOAuth1AccessToken token)
        throws DbxException
    {
        if (token == null) throw new IllegalArgumentException("'token' can't be null");
        DbxRequestUtil.doPostNoAuth(
            requestConfig,
            DbxClientV1.USER_AGENT_ID,
            appInfo.getHost().getApi(),
            "1/disable_access_token",
            null,
            getHeaders(token),
            new DbxRequestUtil.ResponseHandler<Void>() {
                @Override
                public Void handle(HttpRequestor.Response response) throws DbxException {
                    if (response.getStatusCode() != 200) throw DbxRequestUtil.unexpectedStatus(response);
                    return null;
                }
            }
        );
    }
public void disableOAuth1AccessToken ( DbxOAuth1AccessToken token ) throws DbxException { if ( token == null ) throw new IllegalArgumentException ( "'token' can't be null" ) ; DbxRequestUtil . doPostNoAuth ( requestConfig , DbxClientV1 . USER_AGENT_ID , appInfo . getHost ( ) . getApi ( ) , "1/disable_access_token" , null , getHeaders ( token ) , new DbxRequestUtil . ResponseHandler < Void > ( ) { @ Override public Void handle ( HttpRequestor . Response response ) throws DbxException { if ( response . getStatusCode ( ) != 200 ) throw DbxRequestUtil . unexpectedStatus ( response ) ; return null ; } } ) ; }
Tell the Dropbox API server to disable an OAuth 1 access token.