php sample code to retrieving message attachments

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

  • 340 Points 250 badge 2x thumb

Posted 8 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 4,956 Points 4k 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