Skip to content

DataAPI SDK english MT.DataAPI Core method getAuthorizationUrl

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

getAuthorizationUrl

Get authorization URL.

Parameters

Name Type Required Description
redirectUrl String yes The user is redirected to this URL with "#_login" if authorization succeeded.

Returns

String: Authorization URL

Example

var api = new DataAPI({
  baseUrl:  "https://your-host/your-mt-api.cgi",
  clientId: "your-client-id"
});

// "https://your-host/your-mt-api.cgi/v1/authorization/?clientId=your-client-id&redirectUrl=https://your-host/your-app/"
var url = api.getAuthorizationUrl("https://your-host/your-app/"));
Clone this wiki locally