php sample code to retrieving message attachments

  • 1
  • Question
  • Updated 1 week 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

  • 200 Points 100 badge 2x thumb

Posted 1 week ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,476 Points 2k badge 2x thumb
Since you are using the RingCentral PHP SDK. Have a look at this demo code (

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