How to get the latest call detail records of an callshop account. The module is named cdr-callshop and it will work like that.
Parameter: from (date)
Parameter: to (date)
GET http://login.42call.com/api/rest/v2/?cdr-callshop&from=2014-02-01&to=2014-02-20&show=2
Request Headers:
Connection: keep-alive x-date: 2014-02-20 18:23:38.000000 GMT+0000 x-authorization: demo:2ZigDbwB0bX32zmjGgKB+vB/Q74= Host: login.42call.com
Response Body:
{ "error": false, "codes": [ { "code": 200, "description": "OK" } ], "body": { "cdrs": [ { "data": "2014-02-20 21:51:56.000", "caller": "00493019991390875", "callee": "0049179123456", "duration": "4", "billingduration": "4", "comment": "Germany Mobile O2", "amount": "0,0012", "amounttax": "0,0012" }, { "data": "2014-02-20 21:51:56.000", "caller": "00493019991390875", "callee": "0049179123456", "duration": "4", "billingduration": "4", "comment": "Germany Mobile O2", "amount": "0,0053", "amounttax": "0,0053" }, { "data": "2014-02-20 21:51:56.000", "caller": "00493019991390875", "callee": "0049179123456", "duration": "4", "billingduration": "4", "comment": "Germany Mobile O2", "amount": "0,0012", "amounttax": "0,0012" } ] } }
If there is no record available right now, the body tree is an empty array.
Example page.