Skip to content

Instantly share code, notes, and snippets.

@grokify
Created May 5, 2017 23:34
Show Gist options
  • Save grokify/ff200c672b81c00625089cbc7be94acc to your computer and use it in GitHub Desktop.
Save grokify/ff200c672b81c00625089cbc7be94acc to your computer and use it in GitHub Desktop.
RingCentral MMS Example Request in PHP
$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