Uploading a custom user greeting (PHP)

  • 1
  • Question
  • Updated 4 weeks ago
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!
Photo of Charles Zink

Charles Zink

  • 80 Points 75 badge 2x thumb

Posted 1 month ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,938 Points 2k badge 2x thumb
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
Photo of Charles Zink

Charles Zink

  • 80 Points 75 badge 2x thumb
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?
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
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