Difference between revisions of "API Metric Data List"
Ilia.golod (Talk | contribs) |
Ilia.golod (Talk | contribs) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
==URI== | ==URI== | ||
− | https://api.unroole.com/metered_data | + | {| class="wikitable" |
+ | |- | ||
+ | !URL | ||
+ | !Level | ||
+ | |- | ||
+ | |https://api.unroole.com/metered_data | ||
+ | |profile | ||
+ | |- | ||
+ | |https://api.unroole.com/accounts/:account_id/metered_data | ||
+ | |account | ||
+ | |- | ||
+ | |https://api.unroole.com/channels/:channel_id/metered_data | ||
+ | |channel | ||
+ | |} | ||
==HTTP Method== | ==HTTP Method== | ||
GET | GET | ||
Line 15: | Line 28: | ||
|- | |- | ||
|type | |type | ||
− | | | + | | |
| | | | ||
| storage, bandwidth | | storage, bandwidth | ||
Line 27: | Line 40: | ||
|- | |- | ||
|start_date | |start_date | ||
− | | | + | |2 month ago |
| | | | ||
|dateformat yyyy-mm-dd | |dateformat yyyy-mm-dd |
Latest revision as of 16:11, 20 August 2012
URI
URL | Level |
---|---|
https://api.unroole.com/metered_data | profile |
https://api.unroole.com/accounts/:account_id/metered_data | account |
https://api.unroole.com/channels/:channel_id/metered_data | channel |
HTTP Method
GET
Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
token | API Persistence Token that identifies this user and its permissions. | |||
type | storage, bandwidth | |||
zoom | daily | hourly, daily, weekly, monthly | ||
start_date | 2 month ago | dateformat yyyy-mm-dd | ||
end_date | current date | dateformat yyyy-mm-dd |
Paramaters accepted by the controller:
Json Structure:
[ { "name": "Line Name", "data": [ [ 'Year/Month/Day', "Value" ],... ] },... ]
Sample Json:
Sample upload web page |
---|
|