|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this_program `()(string client_id, string client_secret, |
void|string redirect_uri, |
void|string|array(string)|multiset(string) scope) |
{ |
return V3(client_id, client_secret, redirect_uri, scope); |
} |
|
class V3 |
{ |
inherit WebApi.Google.Api : parent; |
|
protected constant AuthClass = Auth.Google.Analytics; |
|
|
protected constant API_URI = "https://www.googleapis.com/analytics/v3"; |
|
|
Core `core() |
{ |
return _core || (_core = Core()); |
} |
|
|
RealTime `realtime() |
{ |
return _realtime || (_realtime = RealTime()); |
} |
|
|
Management `management() |
{ |
return _management || (_management = Management()); |
} |
|
|
class Core |
{ |
inherit Method; |
|
protected constant METHOD_PATH = "/data/ga"; |
|
|
|
|
|
|
mixed get(mapping params, void|Callback cb) |
{ |
return _get("", params, cb); |
} |
} |
|
|
class RealTime |
{ |
inherit Method; |
|
protected constant METHOD_PATH = "/data/realtime"; |
|
|
|
|
|
|
mixed get(mapping params, void|Callback cb) |
{ |
return _get("", params, cb); |
} |
} |
|
|
class Management |
{ |
inherit Method; |
|
protected constant METHOD_PATH = "/management"; |
|
|
|
|
|
|
mixed account_summaries(void|ParamsArg params, void|Callback cb) |
{ |
return _get("/accountSummaries", params, cb); |
} |
} |
|
|
|
protected Core _core; |
protected RealTime _realtime; |
protected Management _management; |
} |
|
|