Methods

Method detail for: getUsageByDate

This method requires you to submit a from date and a to date, both in the format mm/dd/yyyy. It then calculates your API usage between the specific dates and emails that usage to you as a comma-separated values (csv) file. Please note, due to the potential overhead in calculating historical usage, the API does not return data immediately when this method is called. The usage data is calculated in a background process and sent as an email to the email address on your API account.

This method does not require a dataset, and cannot be batched with any other methods

Valid Datasets

This method has no valid datasets that it can be used with.

Sample Request and Return Data

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset></dataset> <method>getUsageByDate</method> <count>false</count> <returnType>xml</returnType> <parameters> <start>08/01/2013</start> <end>09/01/2013</end> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" } }, "request":[ { "dataset":null, "method":"getUsageByDate", "count":"false", "returnType":"json", "parameters":{ "start":"08/01/2013", "end":"09/01/2013" } } ] }
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?> <data> <resultcode>0</resultcode> <message>Return OK</message> <requestid>01-1236</requestid> <request> null </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-6249194" }, null ]