-
Notifications
You must be signed in to change notification settings - Fork 57
feat: added new mms examples #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
$client = new \Vonage\Client($keypair); | ||
|
||
$content = new \Vonage\Messages\MessageObjects\ContentObject( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code snippet spec uses an example of sending two content objects (an image
and a file
in the same message.
$client = new \Vonage\Client($keypair); | ||
|
||
$file = new \Vonage\Messages\MessageObjects\FileObject( | ||
MESSAGES_IMAGE_URL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MESSAGES_IMAGE_URL, | |
MESSAGES_FILE_URL, |
); | ||
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSContent( | ||
TO_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TO_NUMBER, | |
MESSAGES_TO_NUMBER, |
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSContent( | ||
TO_NUMBER, | ||
FROM_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM_NUMBER, | |
MMS_SENDER_ID, |
); | ||
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSFile( | ||
TO_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TO_NUMBER, | |
MESSAGES_TO_NUMBER, |
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSFile( | ||
TO_NUMBER, | ||
FROM_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM_NUMBER, | |
MMS_SENDER_ID, |
$client = new \Vonage\Client($keypair); | ||
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSText( | ||
TO_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TO_NUMBER, | |
MESSAGES_TO_NUMBER, |
|
||
$mms = new \Vonage\Messages\Channel\MMS\MMSText( | ||
TO_NUMBER, | ||
FROM_NUMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM_NUMBER, | |
MMS_SENDER_ID, |
No description provided.