Skip to main content
The First Step
August 8, 2018
Question

php sample code to retrieving message attachments

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

PhongVu
Community Manager
Community Manager
August 8, 2018
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