Created
May 5, 2017 23:34
-
-
Save grokify/ff200c672b81c00625089cbc7be94acc to your computer and use it in GitHub Desktop.
RingCentral MMS Example Request in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request = $rcsdk->createMultipartBuilder() | |
->setBody(array( | |
'from' => array('phoneNumber' => $smsNumber), | |
'to' => array( | |
array('phoneNumber' => $credentials['mobileNumber']), | |
), | |
)) | |
->add(fopen('https://developers.ringcentral.com/assets/images/ico_case_crm.png', 'r')) | |
->request('/account/~/extension/~/sms'); | |
$response = $platform->sendRequest($request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment