Skip to content

DataAPI SDK english MT.DataAPI Endpoint method getStatsProvider

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

getStatsProvider

Retrieve a stats provider.

GET https://your-host/your-mt-api.cgi/v1/sites/:site_id/stats/provider Detail

Parameters

Name Type Required Description
siteId Number | Object | Function yes Site ID
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

Example

api.getStatsProvider(siteId, function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  if (! response.id) {
    // The statistics provider is not readied for this site
    return;
  }

  // response.id
});
Clone this wiki locally