Support > Documentation

API v. 2 - Reference - method "account"


 
Send POST request to "http://api.udger.com/account" with following parameters.

ParameterDescription
accesskeyYou access key

Request example:

POST
accesskey=XXXXXX
to
http://api.udger.com/account

Answer:

Answer format includes selection of following values (encoded in UTF-8):

VariableValueDescription
flag
"0"
"4"
"6"
"99"
Return code of communication:
OK
incorrect acceskey
exceeded the maximum number of queries
BAD REQUEST
errortextstring type valueError 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

Error answer (example):

{
	"flag": 4,
	"errortext": "incorrect acceskey"
}

Correct answer (example):

{
	"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
	}
}    

Among our clients
View more...
 SAP  
 MailChimp  
 Dailymotion SA  
 Akamai Technologies, Inc.  
 Oracle  
 PayPal Holdings, Inc.  
x We have placed cookies on your device to make your experience better. Find more info here.