-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I'm attempting to create a custom greeting as outlined in the docs: https://developer.ringcentral.com/api-docs/latest/index.html#!#RefCreateUserCustomGreeting. Unfortunately this is failing using both a WAV and MP3 file with a 415 Unsupported Media Type error. Below is an example of my code:
$multipartRequest = $rcsdk->createMultipartBuilder()->setBody([
'type' => 'Voicemail',
'answeringRule' => [
'id' => '[redacted]'
],
])->add(fopen('test_greeting.mp3', 'r'))->request('/restapi/v1.0/account/~/extension/[redacted]/greeting');
$response = $rcsdk->platform()->sendRequest($multipartRequest);
Could you provide a working example of createMultipartBuilder for this use case? Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels