php sample code to retrieving message attachments

  • 1
  • Question
  • Updated 4 months ago
Please help me with php sample code to download attachment stream object.
Photo of Nibu Eapen

Nibu Eapen

  • 310 Points 250 badge 2x thumb

Posted 4 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,192 Points 3k badge 2x thumb
Since you are using the RingCentral PHP SDK, you can have a look at this demo code (, where it's shown how to read the call log and download the call recording binary file to a local folder.

For the message attachment, I guess that you get access to the message store. You can modify the demo code to read the message store, get the message attachment $URI and use theĀ $apiResponse = $platform->get($URI); to get the attachment.

+ Phong