getBlogBandwidthUsageInfo

Previous page  First page  Next page

Description

Returns a blog's bandwidth usage amounts for the current or previous month. The amount of any manual or automatic upgrades is also returned.

 

 

Syntax

getBlogBandwidthUsageInfo(version, username, password, blog_id, type)

 

 

Request Fields

 

version - Specifies the version number of the API. Set this to "1.3".  This value is currently ignored, but will be useful for API changes in future versions.

 

username - Your reseller account username.

 

password - Your reseller account password.

 

blog_id - The ID number of the blog that you want to check for bandwidth usage.

 

type - The month for which you want bandwidth usage data.  Allowed values are "current_month" or "last_month".

 

 

Response Fields

Returns a struct with the following structure:

 

bandwidth_used - The amount of bandwidth used for the specified month (either current month or previous month).

 

bandwidth_manu_upgrade - The amount of any manual upgrades submitted during the specified month.

 

bandwidth_package - The amount of bandwidth allocated to the blog according to the blog's package, before any manual or automatic upgrades.

 

blog_id - The ID number of the blog that was checked for bandwidth usage.

 

bandwidth_auto_upgrade - The amount of any automatic upgrades submitted during the specified month.

 

hostname - The hostname of the blog that was checked for bandwidth usage.