You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 errorreturn;}if(!response.id){// The statistics provider is not readied for this sitereturn;}// response.id});