question

nibu-eapen10876 avatar image
nibu-eapen10876 asked Phong Vu commented

php sample code to retrieving message attachments

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



getting started
1 |3000

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 |3000

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 Phong Vu commented
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 |3000

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 ♦♦ commented ·
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 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys