Skip to content

DataAPI SDK english MT.DataAPI Endpoint method revokeAuthentication

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

revokeAuthentication

Invalidate current session. This is like logout.

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

Parameters

Name Type Required Description
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

Example

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

  // Do stuff
});
Clone this wiki locally