Skip to main content
Question

php sample code to retrieving message attachments

  • August 8, 2018
  • 2 replies
  • 1372 views

Please help me with php sample code to download attachment stream object.



2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • August 8, 2018
Since you are using the RingCentral PHP SDK, you can have a look at this demo code (https://github.com/ringcentral/ringcentral-php/blob/master/demo/callRecording.php), 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

  • Participating Frequently
  • February 7, 2019
I am using curl to download attachment of fax. Please help me as I am not able to download it using curl