Uso
WebService URL:
http://magma.edge-americas.com/api/1.1/administration/getUsageForReportingAccount.json.php
Special Header:
Authentication: VMAuth {api-key}
POST Variables:
{
"reportingAccount": {optional reporting account number},
"dateFrom": {initial date in YYYYMMDD format},
"dateTo": {final date in YYYYMMDD format},
"edgeAccount": {optional true|false} (spread Edge accounts; sum up Fibercorp accounts),
"resume": {optional true|false} (sum up all accounts)
}
Ejemplo 1
WebService URL:
http://magma.edge-americas.com/api/1.1/vod/search.json.php
Special Header:
Authentication: VMAuth 84c43749dfcbde1d3f9f684eb19fb465-8f3ae0f7f71cc78667e2a3f8b5ba4c
POST Variables:
{
"reportingAccount": 10003,
"dateFrom": 20141009,
"dateTo": 20141009
}
Resultado:
{
"status": "ok",
"dateFrom": "20141009",
"dateTo": "20141009",
"usage": {
"live": {
"volume": "723370.9746",
"concurrencyPeak": "737"
},
"vod": {
"volume": 0,
"concurrencyPeak": 0,
"storageUsage": "19774.27499004364"
},
"reportingAccount": "10003"
}
}
Ejemplo 2
WebService URL:
http://magma.edge-americas.com/api/1.1/vod/search.json.php
Special Header:
Authentication: VMAuth 84c43749dfcbde1d3f9f684eb19fb465-8f3ae0f7f71cc78667e2a3f8b5ba4c
POST Variables:
{
"dateFrom": 20141009,
"dateTo": 20141011,
"resume": true
}
Resultado:
{
"status": "ok",
"dateFrom": "20141009",
"dateTo": "20141011",
"usage": {
"20000": {
"vod": {
"volume": 0,
"storageUsage": "114.82460090637208",
"concurrencyPeak": 0
},
"live": {
"volume": 0,
"concurrencyPeak": null
}
},
"20001": {
"vod": {
"volume": 0,
"storageUsage": null,
"concurrencyPeak": 0
},
"live": {
"volume": 0,
"concurrencyPeak": null
}
},
"fibercorp": {
"vod": {
"volume": 0,
"storageUsage": 88782.236520481,
"concurrencyPeak": 0
},
"live": {
"volume": 14251591.3187,
"concurrencyPeak": "5795"
}
}
}
Ejemplo 3
WebService URL:
http://magma.edge-americas.com/api/1.1/vod/search.json.php
Special Header:
Authentication: VMAuth 84c43749dfcbde1d3f9f684eb19fb465-8f3ae0f7f71cc78667e2a3f8b5ba4c
POST Variables:
{
"dateFrom": 20141009,
"dateTo": 20141011
}
Resultado:
{
"status": "ok",
"dateFrom": "20141009",
"dateTo": "20141011",
"usage": {
"10001": {
"vod": {
"volume": 0,
"storageUsage": "114.82460090637208",
"concurrencyPeak": 0
},
"live": {
"volume": 0,
"concurrencyPeak": null
}
},
"10003": {
"vod": {
"volume": 0,
"storageUsage": null,
"concurrencyPeak": 0
},
"live": {
"volume": 0,
"concurrencyPeak": null
}
},
"99999": {
"vod": {
"volume": 0,
"storageUsage": 88782.236520481,
"concurrencyPeak": 0
},
"live": {
"volume": 14251591.3187,
"concurrencyPeak": "5795"
}
}
}
Ejemplo 4
WebService URL:
http://magma.edge-americas.com/api/1.1/vod/search.json.php
Special Header:
Authentication: VMAuth 84c43749dfcbde1d3f9f684eb19fb465-8f3ae0f7f71cc78667e2a3f8b5ba4c
POST Variables:
{
"dateFrom": 20141009,
"dateTo": 20141011,
"edgeAccount": true
}
Resultado:
{
"status": "ok",
"dateFrom": "20141009",
"dateTo": "20141011",
"usage": {
"edge": {
"vod": {
"volume": 0,
"storageUsage": 24344.018223128,
"concurrencyPeak": 0
},
"live": {
"volume": 12535812.6568,
"concurrencyPeak": "9511"
}
},
"fibercorp": {
"vod": {
"volume": 0,
"storageUsage": 88782.236520481,
"concurrencyPeak": 0
},
"live": {
"volume": 14251591.3187,
"concurrencyPeak": "5795"
}
}
}
}