prev/next
Integration Options

How do I use GetBandwidthStat for Sub Accounts?

Use GetBandwidthStat to return encoding traffic of selected user. You can specify a certain date to return information on a particular user. Please note "date_to" and "date_from" the optional fields. You should use it if you intend to recieve bandwidth statistic into specified date interval. Post the following XML to the API:

<?xml version="1.0"?>
<query>
<userid>[UserID]</userid>
<userkey>[UserKey]</userkey>
<action>GetBandwidthStat</action>
<action_user_id>[ActionUserID]</action_user_id>
<date_from>[YYYY-MM-DD]</date_from>
</date_to>[YYYY-MM-DD]</date_to>
</query>

and your return will be:

<?xml version="1.0"?>
<response>
   <action>getbandwidthstat</action>
   <status>Success</status>
   <result>
    <user_id>[UserID]</user_id>
    <date_from>[Date from]</date_from>
    <date_to>[Date to]</date_to>
    <in>
       <bytes>[amount in bytes]</bytes>
       <gb>[amount in gigabytes]</gb>
   </in>
   <out>
       <bytes>[amount in bytes]</bytes>
       <gb>[amount in gigabytes]</gb>
   </out>
   <turbo>
       <bytes>[amount in bytes]</bytes>
       <gb>[amount in gigabytes]</gb>
   </turbo>
  </result>
</response>

Request a Free Consultation

No obligation. Learn how we can help you.

We protect your privacy.
tools: email  |  print  |  share  |  click to rate (rated 1 time):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter