Question

Uploading a custom user greeting (PHP)

  • 21 August 2018
  • 4 replies
  • 618 views

Has anyone been able to upload a custom user greeting using the PHP library? I'm getting back 415 Unsupported Media Type for both MP3 and WAV files.


I opened an issue on Github which has some example code: https://github.com/ringcentral/ringcentral-php/issues/75


Thanks!


4 replies

Userlevel 1
Hi Charles,

Thanks for reporting the issue directly to our Github repo! We will investigate the problem and fix it as soon as we can.

Meanwhile, you can get the access token from the php SDK and use the curl command to workaround the problem for you project.

Br,
Phong
Hi, thank-you for the response. Testing around with hand-written CURL requests, I'm coming up against "InvalidContent AWR-135 Unable to parse greeting envelope" errors pretty frequently. Can you explain what that error is?
I've replied here: https://github.com/ringcentral/ringcentral-php/issues/75
It seems that you have figured out how to do it via curl.

If you want to do with Python instead (Python is a programming language while curl is not), refer to: https://github.com/tylerlong/ringcentral-python/blob/master/test/test_multipart_mixed.py

Reply