Charrua
116
6
Laravel

Use ClientRef value when sending SMS with Nexmo

Posted 7 months ago by Charrua

Hello, I'm using SMS notification alerts using Nexmo. Searching their API I can see a custom information field that I can use for sending additional information attached to the SMS, this is the client-ref.

You can see it here https://developer.nexmo.com/api/sms#send-an-sms under Request body

This is my notification code:

/**
* Get the Nexmo / SMS representation of the notification.
*
* @param  mixed  $notifiable
* @return NexmoMessage
*/

public function toNexmo($notifiable)    {
            
    return (new NexmoMessage)->content('Congratulations! You have an appt with .... Please text C to CONFIRM.');

}

Any ideas in how to send also the client-ref parameter?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.