API v. 3 - Reference - method "account"
information about your subscription.
Send GET or POST request to "https://api.udger.com/v3/account" with following parameters.
Parameter | Description |
accesskey | You access key |
Request example:
GET
https://api.udger.com/v3/account?accesskey=XXXXX
Answer:
Answer format includes selection of following values:
Variable | Value | Description |
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" | Date for this period start |
CloudParser->max_queries_per_period | "Int" | The maximum number of queries per period |
CloudParser->currently_queries_per_period | "Int" | The actual number of queries per period |
Error answer (example):
{
"error":401,
"errortext":"UNAUTHORIZED"
}
Correct answer (example):
{
"LocalParser":{
"subscription":false,
"subscription_from":null,
"subscription_to":null
},
"CloudParser":{
"subscription":true,
"subscription_from":"2016-03-08",
"subscription_to":"2016-04-08",
"period":"month",
"current_period_start":"2016-03-08",
"max_queries_per_period":"500",
"currently_queries_per_period":28
}
}