Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: added new mms examples #106

wants to merge 1 commit into from

Conversation

manchuck
Copy link
Contributor

No description provided.

@manchuck manchuck requested a review from superchilled July 10, 2025 18:08

$client = new \Vonage\Client($keypair);

$content = new \Vonage\Messages\MessageObjects\ContentObject(
Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MESSAGES_IMAGE_URL,
MESSAGES_FILE_URL,

);

$mms = new \Vonage\Messages\Channel\MMS\MMSContent(
TO_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TO_NUMBER,
MESSAGES_TO_NUMBER,


$mms = new \Vonage\Messages\Channel\MMS\MMSContent(
TO_NUMBER,
FROM_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM_NUMBER,
MMS_SENDER_ID,

);

$mms = new \Vonage\Messages\Channel\MMS\MMSFile(
TO_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TO_NUMBER,
MESSAGES_TO_NUMBER,


$mms = new \Vonage\Messages\Channel\MMS\MMSFile(
TO_NUMBER,
FROM_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM_NUMBER,
MMS_SENDER_ID,

$client = new \Vonage\Client($keypair);

$mms = new \Vonage\Messages\Channel\MMS\MMSText(
TO_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TO_NUMBER,
MESSAGES_TO_NUMBER,


$mms = new \Vonage\Messages\Channel\MMS\MMSText(
TO_NUMBER,
FROM_NUMBER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM_NUMBER,
MMS_SENDER_ID,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants