Skip to content

DataAPI SDK english MT.DataAPI Endpoint method revokeToken

Taku AMANO edited this page Aug 28, 2013 · 4 revisions

revokeToken

Invalidate current access token. This is not logout. If the browser has active session ID, new access token can be obtained easily.

if you want to invalidate current session (like doing logout), you should call revokeAuthentication.

DELETE https://your-host/your-mt-api.cgi/v1/token Detail

Parameters

Name Type Required Description
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

Example

api.revokeToken(function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  // Do stuff
});
Clone this wiki locally