Question

Hunt Group Results

  • 8 October 2016
  • 3 replies
  • 1001 views

Using: username=441392790295&extension=301&password=*******&grant_type=password&url=https://platform.ringcentral.com/restapi/oauth/token


should generate the same results as a detailed request for calls from the RingCentral Dashboard i.e all calls to our huntgroup. Instead it just provides call for 301 the supervisor extn which rarely answers any calls in the huntgroup so calls are shown as "missed" when in fact they went to another extn in the huntgroup:


"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/672175064/extension/672175064/call-log/F7YKFKZ...;, "id" : "F7YKFKZMWkP2fzk", "sessionId" : "286649505064", "startTime" : "2016-10-06T17:40:09.000Z", "duration" : 3, "type" : "Voice", "direction" : "Inbound", "action" : "Phone Call", "result" : "Missed", "to" : { "phoneNumber" : "+441392790295", "name" : "Supervisor 2" }, "from" : { "phoneNumber" : "+447725850384" }




3 replies

You could use a RingCentral administrative user account to authenticate instead which would grant you the ability to search call logs at the account-level. Of course, this is only a cursory suggestion based on the information provided...


If you would like me to investigate further, please provide the following information:

1. Is your sandbox account configured the same as your production account (or has someone modified your production account recently which has caused a lack of parity)?

2. Are you using one of the RingCentral SDKs? If yes, which one (provide Github URL please)?

3. Provide the code you're using to execute this request (along with full response headers/body) please.

4. Could you provide the complete API response from your authentication request (sans-sensitive-data)?
Thanks for your help here the problem was the URL in the sample it doesn't say you can use the request without parameters at all. However a previous post gave us the hint. I then saw that the result came back with view=simple we changed that to detailed and 

https://platform.ringcentral.com/restapi/v1.0/account/~/call-log?view=Detailed&dateFrom="; + TextBox4.Text + "&dateTo=" + TextBox3.Text)

where we pick up the latest datetime parameter on the fly works perfectly

So we think all good now !
Now we have a further problem I wonder if you can help with. We can download successfully but are having huge problems converting that into a csv file has anyone written a script in vb of c# that can do that ?

Reply