php sample code to retrieving message attachments

  • 1
  • Question
  • Updated 2 months ago
may I know how I can save it to file?

RingCentral\SDK\Http\ApiResponse Object ( [_jsonAsArray:protected] => [_jsonAsObject:protected] => [_multiparts:protected] => [_response:protected] => GuzzleHttp\Psr7\Response Object ( [reasonPhrase:GuzzleHttp\Psr7\Response:private] => OK [statusCode:GuzzleHttp\Psr7\Response:private] => 200 [headers:GuzzleHttp\Psr7\Response:private] => Array (

Photo of Nibu Eapen

Nibu Eapen

  • 310 Points 250 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,072 Points 3k badge 2x thumb
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