Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AdamAPI v1.0 Sample

By: michaeldyrynda on Mar 30th, 2011  |  syntax: XML  |  size: 14.63 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <Response>
  2.   <ConnectionInformation>
  3.     <Name>Third Party Developer Tools - Connection and Usage Information</Name>
  4.     <Version>1.0</Version>
  5.     <Disclaimer>
  6.       XML Feed provided to you by Adam Internet to monitor your usage and online information. This information is provided to you as a guide only and must not be relied upon as a commitment or authorative in nature.
  7.     </Disclaimer>
  8.     <PreviousVersion>0.9</PreviousVersion>
  9.     <PreviousVersionURI>https://members.adam.com.au/api/usage-0.9.xml</PreviousVersionURI>
  10.     <NextVersion />
  11.     <NextVersionURI />
  12.   </ConnectionInformation>
  13. <Customer description="Token Description">
  14.     <!-- ONLY IF AVAILABLE -->
  15.     <Account type="ADSL" username="Account Username">
  16.         <QuotaStartDate>2011-03-04T00:00:00+1030</QuotaStartDate>
  17.         <PlanName>AdamEzyChoice Naked 250GB</PlanName>
  18.         <PlanType>AdamNaked</PlanType>
  19.         <PlanSpeed>24000/1000</PlanSpeed>
  20.         <ByteQuota>250000000000</ByteQuota>
  21.         <ByteDatablocks>0</ByteDatablocks>
  22.         <MinutesRemaining>0</MinutesRemaining>
  23.         <NewsgroupByteQuota>15000000000</NewsgroupByteQuota>
  24.         <SessionStart>2011-03-29T18:09:22+1030</SessionStart>
  25.         <Usage>
  26.           <!-- ONLY APPLICABLE BUCKETS WILL BE SHOWN -->
  27.           <!-- i.e. EzyChoice will only show Download, SuperChoice will show Peak Downloads and Off-Peak Downloads etc -->
  28.           <!-- YOUR APPLICATION WILL NOT HAVE TO DO ANY USAGE CALCULATIONS -->
  29.           <Bucket desc="Download">
  30.             <Quota units="B" startdatetime="2011-03-04T00:00:00+1030">250000000000</Quota>
  31.             <Datablocks units="B">0</Datablocks>
  32.             <Usage units="B">165239819204</Usage>
  33.           </Bucket>
  34.           <Bucket desc="Newsgroups">
  35.             <Quota units="B" startdatetime="2011-03-01T00:00:00+1030">15000000000</Quota>
  36.             <Usage units="B">0</Usage>
  37.           </Bucket>
  38.           <LastUsageUpdate>2011-03-30T09:09:54+1030</LastUsageUpdate>
  39.         </Usage>
  40.         <!-- END ONLY IF AVAILABLE -->
  41.         <!-- ONLY IF AVAILABLE -->
  42.         <ADSL>                
  43.             <SyncStatus>yes</SyncStatus>
  44.             <SyncUp>2064000</SyncUp>
  45.             <SyncDown>14826000</SyncDown>
  46.             <SNRUp>7.1</SNRUp>
  47.             <SNRDown>5.5</SNRDown>
  48.             <AttenuationUp>20.5</AttenuationUp>
  49.             <AttenuationDown>27.4</AttenuationDown>
  50.         </ADSL>
  51.         <IPAddresses>                                          
  52.             <IPv4Address>202.136.108.93</IPv4Address>                                  
  53.             <IPv4Address>219.90.201.184</IPv4Address>
  54.             <IPv4Address>219.90.201.185</IPv4Address>
  55.             <IPv4Address>219.90.201.186</IPv4Address>
  56.             <IPv4Address>219.90.201.187</IPv4Address>
  57.             <IPv4Address>219.90.201.188</IPv4Address>
  58.             <IPv4Address>219.90.201.189</IPv4Address>
  59.             <IPv4Address>219.90.201.190</IPv4Address>
  60.             <IPv4Address>219.90.201.191</IPv4Address>
  61.         </IPAddresses>
  62.         <!-- END ONLY IF AVAILABLE -->
  63.         <!-- SHOWS CURRENT MONTH. DOES NOT SHOW CURRENT DAY. WILL SHOW NOTHING ON DAY ONE. -->
  64.         <DailySummary>                                        
  65.             <Day date="2011-03-04T00:00:00+1030">
  66.                 <Bucket desc="Download" units="B">4140511809</Bucket>
  67.                 <Terminations>0</Terminations>
  68.             </Day>
  69.             <Day date="2011-03-05T00:00:00+1030">
  70.                 <Bucket desc="Download" units="B">21250938328</Bucket>
  71.                 <Terminations>0</Terminations>
  72.             </Day>
  73.             <Day date="2011-03-06T00:00:00+1030">
  74.                 <Bucket desc="Download" units="B">711740913</Bucket>
  75.                 <Terminations>0</Terminations>
  76.             </Day>
  77.             <Day date="2011-03-07T00:00:00+1030">
  78.                 <Bucket desc="Download" units="B">1990810789</Bucket>
  79.                 <Terminations>0</Terminations>
  80.             </Day>
  81.             <Day date="2011-03-08T00:00:00+1030">
  82.                 <Bucket desc="Download" units="B">3372390679</Bucket>
  83.                 <Terminations>0</Terminations>
  84.             </Day>
  85.             <Day date="2011-03-09T00:00:00+1030">
  86.                 <Bucket desc="Download" units="B">18634819459</Bucket>
  87.                 <Terminations>0</Terminations>
  88.             </Day>
  89.             <Day date="2011-03-10T00:00:00+1030">
  90.                 <Bucket desc="Download" units="B">677809336</Bucket>
  91.                 <Terminations>1</Terminations>
  92.             </Day>
  93.             <Day date="2011-03-11T00:00:00+1030">
  94.                 <Bucket desc="Download" units="B">11074527122</Bucket>
  95.                 <Terminations>0</Terminations>
  96.             </Day>
  97.             <Day date="2011-03-12T00:00:00+1030">
  98.                 <Bucket desc="Download" units="B">2861077591</Bucket>
  99.                 <Terminations>6</Terminations>
  100.             </Day>
  101.             <Day date="2011-03-13T00:00:00+1030">
  102.                 <Bucket desc="Download" units="B">1188412983</Bucket>
  103.                 <Terminations>2</Terminations>
  104.             </Day>
  105.             <Day date="2011-03-14T00:00:00+1030">
  106.                 <Bucket desc="Download" units="B">3097690853</Bucket>
  107.                 <Terminations>1</Terminations>
  108.             </Day>
  109.             <Day date="2011-03-15T00:00:00+1030">
  110.                 <Bucket desc="Download" units="B">7503631196</Bucket>
  111.                 <Terminations>1</Terminations>
  112.             </Day>
  113.             <Day date="2011-03-16T00:00:00+1030">
  114.                 <Bucket desc="Download" units="B">1973446456</Bucket>
  115.                 <Terminations>11</Terminations>
  116.             </Day>
  117.             <Day date="2011-03-17T00:00:00+1030">
  118.                 <Bucket desc="Download" units="B">11342535498</Bucket>
  119.                 <Terminations>8</Terminations>
  120.             </Day>
  121.             <Day date="2011-03-18T00:00:00+1030">
  122.                 <Bucket desc="Download" units="B">2611731606</Bucket>
  123.                 <Terminations>0</Terminations>
  124.             </Day>
  125.             <Day date="2011-03-19T00:00:00+1030">
  126.                 <Bucket desc="Download" units="B">1007385295</Bucket>
  127.                 <Terminations>1</Terminations>
  128.             </Day>
  129.             <Day date="2011-03-20T00:00:00+1030">
  130.                 <Bucket desc="Download" units="B">1395761108</Bucket>
  131.                 <Terminations>0</Terminations>
  132.             </Day>
  133.             <Day date="2011-03-21T00:00:00+1030">
  134.                 <Bucket desc="Download" units="B">3222829544</Bucket>
  135.                 <Terminations>4</Terminations>
  136.             </Day>
  137.             <Day date="2011-03-22T00:00:00+1030">
  138.                 <Bucket desc="Download" units="B">16348351594</Bucket>
  139.                 <Terminations>4</Terminations>
  140.             </Day>
  141.             <Day date="2011-03-23T00:00:00+1030">
  142.                 <Bucket desc="Download" units="B">3483357511</Bucket>
  143.                 <Terminations>9</Terminations>
  144.             </Day>
  145.             <Day date="2011-03-24T00:00:00+1030">
  146.                 <Bucket desc="Download" units="B">1125219441</Bucket>
  147.                 <Terminations>12</Terminations>
  148.             </Day>
  149.             <Day date="2011-03-25T00:00:00+1030">
  150.                 <Bucket desc="Download" units="B">16141301902</Bucket>
  151.                 <Terminations>1</Terminations>
  152.             </Day>
  153.             <Day date="2011-03-26T00:00:00+1030">
  154.                 <Bucket desc="Download" units="B">1096550971</Bucket>
  155.                 <Terminations>0</Terminations>
  156.             </Day>
  157.             <Day date="2011-03-27T00:00:00+1030">
  158.                 <Bucket desc="Download" units="B">13811255905</Bucket>
  159.                 <Terminations>4</Terminations>
  160.             </Day>
  161.             <Day date="2011-03-28T00:00:00+1030">
  162.                 <Bucket desc="Download" units="B">1832277110</Bucket>
  163.                 <Terminations>4</Terminations>
  164.             </Day>
  165.             <Day date="2011-03-29T00:00:00+1030">
  166.                 <Bucket desc="Download" units="B">5011880946</Bucket>
  167.                 <Terminations>3</Terminations>
  168.             </Day>
  169.         </DailySummary>
  170.     </Account>
  171.     <!-- ONLY IF AVAILABLE -->
  172.     <Account type="mobileBroadband" username="Account username">
  173.         <QuotaStartDate>2011-03-04T00:00:00+1030</QuotaStartDate>
  174.         <PlanName>AdamAnyG</PlanName>
  175.         <PlanType></PlanType>
  176.         <PlanSpeed></PlanSpeed>
  177.         <ByteQuota>500000000</ByteQuota>
  178.         <ByteDatablocks>0</ByteDatablocks>
  179.         <MinutesRemaining>0</MinutesRemaining>
  180.         <NewsgroupByteQuota></NewsgroupByteQuota>
  181.         <SessionStart>2011-03-29T07:48:50+1030</SessionStart>
  182.         <Usage>
  183.           <Bucket desc="Total">
  184.             <Quota units="B" startdatetime="2011-03-04T00:00:00+1030">500000000</Quota>
  185.             <Datablocks units="B">0</Datablocks>
  186.             <Usage units="B">163804146</Usage>
  187.           </Bucket>
  188.           <LastUsageUpdate>2011-03-30T09:19:26+1030</LastUsageUpdate>
  189.         </Usage>
  190.         <IPAddresses>                                          
  191.             <IPv4Address>122.49.129.166</IPv4Address>
  192.         </IPAddresses>
  193.         <DailySummary>                                        
  194.             <Day date="2011-03-04T00:00:00+1030">
  195.                 <Bucket desc="Total" units="B">10576813</Bucket>
  196.                 <Terminations>1</Terminations>
  197.             </Day>
  198.             <Day date="2011-03-05T00:00:00+1030">
  199.                 <Bucket desc="Total" units="B">1992609</Bucket>
  200.                 <Terminations>3</Terminations>
  201.             </Day>
  202.             <Day date="2011-03-06T00:00:00+1030">
  203.                 <Bucket desc="Total" units="B">2385092</Bucket>
  204.                 <Terminations>2</Terminations>
  205.             </Day>
  206.             <Day date="2011-03-07T00:00:00+1030">
  207.                 <Bucket desc="Total" units="B">2725667</Bucket>
  208.                 <Terminations>1</Terminations>
  209.             </Day>
  210.             <Day date="2011-03-08T00:00:00+1030">
  211.                 <Bucket desc="Total" units="B">25356148</Bucket>
  212.                 <Terminations>0</Terminations>
  213.             </Day>
  214.             <Day date="2011-03-09T00:00:00+1030">
  215.                 <Bucket desc="Total" units="B">5753039</Bucket>
  216.                 <Terminations>2</Terminations>
  217.             </Day>
  218.             <Day date="2011-03-10T00:00:00+1030">
  219.                 <Bucket desc="Total" units="B">14814067</Bucket>
  220.                 <Terminations>6</Terminations>
  221.             </Day>
  222.             <Day date="2011-03-11T00:00:00+1030">
  223.                 <Bucket desc="Total" units="B">7004863</Bucket>
  224.                 <Terminations>3</Terminations>
  225.             </Day>
  226.             <Day date="2011-03-12T00:00:00+1030">
  227.                 <Bucket desc="Total" units="B">1464859</Bucket>
  228.                 <Terminations>0</Terminations>
  229.             </Day>
  230.             <Day date="2011-03-13T00:00:00+1030">
  231.                 <Bucket desc="Total" units="B">2043610</Bucket>
  232.                 <Terminations>2</Terminations>
  233.             </Day>
  234.             <Day date="2011-03-14T00:00:00+1030">
  235.                 <Bucket desc="Total" units="B">2139015</Bucket>
  236.                 <Terminations>1</Terminations>
  237.             </Day>
  238.             <Day date="2011-03-15T00:00:00+1030">
  239.                 <Bucket desc="Total" units="B">16350573</Bucket>
  240.                 <Terminations>2</Terminations>
  241.             </Day>
  242.             <Day date="2011-03-16T00:00:00+1030">
  243.                 <Bucket desc="Total" units="B">4094380</Bucket>
  244.                 <Terminations>1</Terminations>
  245.             </Day>
  246.             <Day date="2011-03-17T00:00:00+1030">
  247.                 <Bucket desc="Total" units="B">4775349</Bucket>
  248.                 <Terminations>2</Terminations>
  249.             </Day>
  250.             <Day date="2011-03-18T00:00:00+1030">
  251.                 <Bucket desc="Total" units="B">4872153</Bucket>
  252.                 <Terminations>1</Terminations>
  253.             </Day>
  254.             <Day date="2011-03-19T00:00:00+1030">
  255.                 <Bucket desc="Total" units="B">2788332</Bucket>
  256.                 <Terminations>6</Terminations>
  257.             </Day>
  258.             <Day date="2011-03-21T00:00:00+1030">
  259.                 <Bucket desc="Total" units="B">4681883</Bucket>
  260.                 <Terminations>3</Terminations>
  261.             </Day>
  262.             <Day date="2011-03-22T00:00:00+1030">
  263.                 <Bucket desc="Total" units="B">10978662</Bucket>
  264.                 <Terminations>2</Terminations>
  265.             </Day>
  266.             <Day date="2011-03-23T00:00:00+1030">
  267.                 <Bucket desc="Total" units="B">5523412</Bucket>
  268.                 <Terminations>3</Terminations>
  269.             </Day>
  270.             <Day date="2011-03-24T00:00:00+1030">
  271.                 <Bucket desc="Total" units="B">5925915</Bucket>
  272.                 <Terminations>1</Terminations>
  273.             </Day>
  274.             <Day date="2011-03-25T00:00:00+1030">
  275.                 <Bucket desc="Total" units="B">9361961</Bucket>
  276.                 <Terminations>7</Terminations>
  277.             </Day>
  278.             <Day date="2011-03-26T00:00:00+1030">
  279.                 <Bucket desc="Total" units="B">5662444</Bucket>
  280.                 <Terminations>0</Terminations>
  281.             </Day>
  282.             <Day date="2011-03-27T00:00:00+1030">
  283.                 <Bucket desc="Total" units="B">5750088</Bucket>
  284.                 <Terminations>1</Terminations>
  285.             </Day>
  286.             <Day date="2011-03-28T00:00:00+1030">
  287.                 <Bucket desc="Total" units="B">3634631</Bucket>
  288.                 <Terminations>5</Terminations>
  289.             </Day>
  290.             <Day date="2011-03-29T00:00:00+1030">
  291.                 <Bucket desc="Total" units="B">2120827</Bucket>
  292.                 <Terminations>0</Terminations>
  293.             </Day>
  294.         </DailySummary>
  295.     </Account>
  296.     <!-- END ONLY IF AVAILABLE -->
  297.     <!-- ONLY IF AVAILABLE -->
  298.     <Account type="AdamTalk" username="AdamTalk username">
  299.         <DID primary="true">0870000000</DID>
  300.         <!-- MAY HAVE SECONDARY NUMBERS ATTACHED -->
  301.         <DID>0870000001</DID>
  302.         <DID>0870000002</DID>
  303.         <DID>0870000003</DID>
  304.         <DID>087000000n</DID>
  305.         <Usage>
  306.             <!-- CATEGORY ONLY DISPLAYED IF COUNT > 0 -->
  307.             <!-- SHOWS CATEGORY SUMMARY / TOTALS -->
  308.             <Category count="4" duration="1106" cost="48">Local</Category>
  309.             <Category count="15" duration="721" cost="426">Mobile</Category>
  310.             <Category count="1" duration="1348" cost="40">Special Number</Category>
  311.         </Usage>
  312.     </Account>
  313.     <!-- END ONLY IF AVAILABLE -->
  314. </Customer>
  315. </Response>