Question

php sample code to retrieving message attachments

  • 8 August 2018
  • 1 reply
  • 410 views

may I know how I can save it to file?

RingCentralSDKHttpApiResponse Object  (      [_jsonAsArray:protected] =>       [_jsonAsObject:protected] =>       [_multiparts:protected] =>       [_response:protected] => GuzzleHttpPsr7Response Object          (              [reasonPhrase:GuzzleHttpPsr7Response:private] => OK              [statusCode:GuzzleHttpPsr7Response:private] => 200              [headers:GuzzleHttpPsr7Response:private] => Array                  (



1 reply

Userlevel 1
Since you are using the RingCentral PHP SDK. Have a look at this demo code (https://github.com/ringcentral/ringcentral-php/blob/master/demo/callRecording.php).

It is for reading the call recording and download the call recording binary. But you can use the same code to download message attachment where you provide the URI of the message attachment.

+ Phong

Reply