PHP SDK Getting "Call recording content".

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I use PHP SDK.

I try to get call recording content. For example,

 $platform->get('https://platform.devtest.ringcentral.com/restapi/v1.0/account/664649005/recording/1347950005/content');

SDK using curl. Curl send request and receive response:

HTTP/1.1 403 Forbidden Server: nginx/1.8.0 Date: Tue, 29 Dec 2015 09:00:52 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 222 Connection: keep-alive RCRequestId: 494861 RoutingKey: SJC12P01PAS02 X-LoadMetric: 6 WWW-Authenticate: Bearer realm="RingCentral REST API", error="insufficient_scope" X-ERROR-ID: b88c2180-2f44-48e5-833c-b08e44ac997e Content-Language: en-US X-REQUEST-ID: 494861 { "errorCode" : "InsufficientPermissions", "message" : "Specific application permission required", "errors" : [ { "errorCode" : "CMN-401", "message" : "Specific application permission required" } ] }
I'm don't know what i must do it.

Help me please
Photo of Dmitry Loginov

Dmitry Loginov

  • 132 Points 100 badge 2x thumb
  • confused

Posted 3 years ago

  • 1
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,662 Points 5k badge 2x thumb
Go to your application information in the app please copy and paste them here. Your app may not have the correct API Permissions defined. You should see a permission like "Read Call Recordings". If that isn't present you need to add it to your app please.

The other possibility is your account somehow did not receive the correct credentials to access call recordings. Could yout also share your App Name here as well and I can confirm/fix if this is the issue.
Photo of Dmitry Loginov

Dmitry Loginov

  • 132 Points 100 badge 2x thumb
Thanks.

When i create application field list "Permissions needed" contains only "Read Messages, Faxes, Read Presence, Read Accounts, Ring Out, SMS, Internal Messages, Read Call Log, Edit Messages ".

I can't find "Read Call Recordings" permission.



My application "SalesForce Integration" settings

Scope - Public

Permissions - Read Messages, Faxes, Read Presence, Read Accounts, Ring Out, SMS, Internal Messages, Read Call Log, Edit Messages 


I use it in sandbox only.
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,662 Points 5k badge 2x thumb
That will need to be enabled for your account.

You have one of two choices:

1. You don't you mind waiting until tomortow morning and i can review your app and enable this feature, and notify you once comolete.

2. Send an email to devSupport@RingCentral.Com and request permission to download Call Recordings, along with your app name and app ID. Your support case will be processed in the order in which it was received.

Just let me know which you'd prefer please.

Thanks,
Benjamin
Photo of Dmitry Loginov

Dmitry Loginov

  • 132 Points 100 badge 2x thumb
Thanks Benjamin.

I select way 1. 

My application - "SalesForce Integration". Application Key - a9dLrqSfQzGubPEDfS3rXw
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,662 Points 5k badge 2x thumb
Oh no! Did I say App Name and App Key!? I meant App Name and App ID. {reading previous posts...whew, I did say App Name and App ID}

You'll want to disable those API Keys (App Key and App Secret). You always want to keep your API Keys private. App ID is more than sufficient and doesn't expose risk to 50% of your App's access to RingCentral's Platform's API. #security-matters

No biggie. Let me know if you need help with that.

Will respond in the morning after I've reviewed and patched up your account.

Talk soon,
Benjamin
Photo of Dmitry Loginov

Dmitry Loginov

  • 132 Points 100 badge 2x thumb
I sent api key, because i don't know where i can find App ID.
Photo of VB

VB, Official Rep

  • 1,510 Points 1k badge 2x thumb
Added Read Recording permission to the app. Please reply to my email with the details for the usage of the call recording. 
Photo of Dmitry Loginov

Dmitry Loginov

  • 132 Points 100 badge 2x thumb
Thanks! It's work!