|
|
Parameter | Description |
---|---|
accesskey | You access key |
POST accesskey=XXXXXX to http://api.udger.com/account
Answer format includes selection of following values (encoded in UTF-8):
Variable | Value | Description |
---|---|---|
flag | "0" "4" "6" "99" | Return code of communication: OK incorrect acceskey exceeded the maximum number of queries BAD REQUEST |
errortext | string type value | Error descriptoon, for flag "1", "6" and "99" only |
LocalParser->subscription | "true" "false" | subscription is active subscription is not active |
LocalParser->subscription_from | "null" "YYYY-MM-DD" | Date from subscripion active |
LocalParser->subscription_to | "null" "YYYY-MM-DD" | Date to subscripion active |
CloudParser->subscription | "true" "false" | subscription is active subscription is not active |
CloudParser->subscription_from | "null" "YYYY-MM-DD" | Date from subscripion active |
CloudParser->subscription_to | "null" "YYYY-MM-DD" | Date to subscripion active |
CloudParser->period | "month" | period for a number of queries |
CloudParser->current_period_start | "YYYY-MM-DD" | The maximum number of queries per period |
CloudParser->max_queries_per_period | "Int" | Date for this period start |
CloudParser->currently_queries_per_period | "Int" | The actual number of queries per period |
{ "flag": 4, "errortext": "incorrect acceskey" }
{ "flag": 0, "LocalParser": { "subscription": false, "subscription_from": null, "subscription_to": null }, "CloudParser": { "subscription": true, "subscription_from": "2014-12-13", "subscription_to": "2015-01-13", "period": "month", "current_period_start": "2014-12-13", "max_queries_per_period": "500", "currently_queries_per_period": 5 } }