API Reference

Vhost.getAPIDailySummary

Get the daily API summary for a project for a period of time.


Syntax

mixed vhost.getAPIDailySummary ( INT vhostId, Date startDate = NULL, Date endDate = NULL, mixed summarizeBy = 3 )

Arguments

NameTypeRequiredDefault valueDescription
vhostIdINTRequirednoneThe Id of the vhost.
startDateDateOptionalNULLThe start of the time period for the storage data.
Format: Unix timestamp or 'YYYY-MM-DD'
endDateDateOptionalNULLThe number of records that you want returned.
summarizeBymixedOptional3

Response

NameTypeDescriptionPossible Values
dateDateThe date for the storage value.YYYY-mm-dd
countINTThe total API calls for the day.0
total_countINTThe running total of the API calls up to the end of that date in the timeframe.
It is available in each item of the results and specific to that date.
(It is available as result->item->total_count)
0
totalCountINTThe overall total of the API calls for the specified timeframe.
(It is available as result->totalCount)
0

Sample Response

Code examples

0 comments

Be the first to comment on getAPIDailySummary.

Add a Comment

  • captcha