question

nibu-eapen10876 avatar image
nibu-eapen10876 asked ·

php sample code to retrieving message attachments

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


General Topic
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered ·
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
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

nikunj-bhatnagar13996 avatar image
nikunj-bhatnagar13996 answered ·
I am using curl to download attachment of fax. Please help me as I am not able to download it using curl
1 comment
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Here you go.

https://github.com/PacoVu/call-ringcentral-faxapi-native-php-demo

You can check out the OAuth tutorial from here too.

+ Phong
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.