Skip to content

DataAPI SDK english MT.DataAPI Event authorizationRequired

Taku AMANO edited this page Jul 5, 2013 · 1 revision

authorizationRequired

Event parameters

Name Type Description
response Object A response object
response.code Number The HTTP response code
response.message String The error message

Example

api.on("authorizationRequired", function(response) {
  // You will return to current URL after authorization succeeded.
  location.href = api.getAuthorizationUrl(location.href);
});
Clone this wiki locally