Skip to content

DataAPI SDK japanese MT.DataAPI Endpoint method getStatsProvider

Taku AMANO edited this page Jul 6, 2013 · 10 revisions

getStatsProvider

Retrieve a stats provider.

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

パラメータ

パラメータ名 タイプ 必須 説明
siteId Number | Object | Function * Site ID
params Object no オプション
callback Function no

戻り値

XMLHttpRequest: XMLHttpRequestオブジェクト

api.getStatsProvider(siteId, function(response) {
  if (response.error) {
    if (response.error.code === 404) {
      // The statistics provider is not readied for this site
    }
    else {
      // Handle error
    }
    return;
  }

  // response.id
});

Clone this wiki locally