messagebird | Messagebird notifications channel for Laravel | SMS library
kandi X-RAY | messagebird Summary
kandi X-RAY | messagebird Summary
This package makes it easy to send Messagebird SMS notifications with Laravel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Send a notification .
- Bootstrap the application .
- Set the recipients .
- Sets the message body
- Thrown when a message has an error .
- Create an exception for messagebird .
messagebird Key Features
messagebird Examples and Code Snippets
use NotificationChannels\Messagebird\MessagebirdChannel;
use NotificationChannels\Messagebird\MessagebirdMessage;
use Illuminate\Notifications\Notification;
class VpsServerOrdered extends Notification
{
public function via($notifiable)
{
// config/services.php
...
'messagebird' => [
'access_key' => env('MESSAGEBIRD_ACCESS_KEY'),
'originator' => env('MESSAGEBIRD_ORIGINATOR'),
'recipients' => env('MESSAGEBIRD_RECIPIENTS'),
],
...
// .env
...
MESSAGEBIRD_ACCESS_
composer require laravel-notification-channels/messagebird
// config/app.php
'providers' => [
...
NotificationChannels\Messagebird\MessagebirdServiceProvider::class,
],
Community Discussions
Trending Discussions on messagebird
QUESTION
I've been trying to follow the docs at MessageBird to test out sending a verification SMS. But when I execute the curl
command, the returned response is as expected here:
ANSWER
Answered 2021-Nov-11 at 16:40Make sure that you are using a Live key and not the Test key, as the Test environment does not store any of your requests.
If you are looking for a sample response to work with, here is one I just got back:
QUESTION
I am new, let me know if anymore information is needed!
I am trying to integrate MessageBird with Firestore. It is writing everything to the database okay except for the "to" field which takes a phone number. I am logging the number and it is being output correctly in the console, except in my Firestore it is being stored as undefined
. If anyone can provide any insight as to why this is, that would be greatly appreciated. I have been stuck for some while. (Attached part of function where issue arises and screenshot of console)
I originally tried without using await
on the doc.data()?.phoneNum
line and just received [object Promise]
. Now that it is printing in console I know this has nothing to do with it. Please help!
ANSWER
Answered 2021-Jun-24 at 18:31The promises doesn't seem to handled properly. .data()
does not return a promise so you don't need an await
there. Also I don't see the var 'number'
declared anywhere so that'd be undefined. You can try running the following code:
QUESTION
I'm trying to send SMS OTP via MessageBird services with nodejs and flutter application.
I tried the configuration and calls that doing on this video (official from MessageBird) but I cannot understand what is going on with ID that I'm getting back and the token that I should post it to Messagebird's API.
Video link: https://www.youtube.com/watch?v=6wrThyJi7lo
Any one can help me ?
Thank you very much!
...ANSWER
Answered 2021-Mar-23 at 12:56In short:
the ID is for the verification process, when you send the ID and the token together back to messagebird in step3 of the tutorial, messagebird will tell you if this token you just sent is the one that was sent to the user.
The flow works like this:
- your application gets a phone number from the user
- your application makes a
verify
request using messagebird sdk (where it callsmessagebird.verify.create(number, {"template": ""}...)
- Messagebird will replace
%token
from yourwith a random token and send a message to the user's phone.
- if the verify.create request succeeds, messagebird will give you an ID for this verification process, you'll need that later to verify the token when the user submits it to you
- The user gives you a token and you pass it back along with the ID (from the previous step) to messagebird where you call
messagebird.verify.verify(id, token, ...)
- Messagebird will respond back to your request with either success or error based on whether the token matches what was sent to the user or not.
more details: you need the ID and the token in order to be able to handle multiple users at the same time, think if u have two users verifying their phone number at the same time, one got token 1234
and the other got 5678
without an ID there's no way to tell them apart.
QUESTION
I have been trying to send SMS messages with PHP using MessageBird. Currently I'm getting no error messages but I'm not receiving the messages on my phone, but I can see my free SMS credits being deducted.
...ANSWER
Answered 2021-Feb-24 at 08:09One option for debugging would be to check the SMS logs in the Dashboard.
https://developers.messagebird.com/quickstarts/sms/troubleshooting/
QUESTION
Currently, I'm trying to integrate the message bird API into my automated app (https://developers.messagebird.com/).
I'm trying to upload files using the message bird API, as the documentation says I'm using this endpoint: https://messaging.messagebird.com/v1/files that returns me the id of the file that I uploaded, the problem is that when I try to join that ID with the endpoint to get the file (https://messaging.messagebird.com/v1/files/:id-of-the-file) and use that URL into the content of the message that I want to send (
...ANSWER
Answered 2020-Sep-04 at 09:20You should be uploading images to the messaging API endpoint only if you want to include them in email message. Once they have uploaded you can use the id's returned in either the inlineImage
field, or the attachments
field, as seen in this json example.
If you are trying to send the image via another platform (ie whatsapp, telegram), you should be able to include the your image url as part of the request, like the example below.
Not sure what endpoint you are using to send the message over, but this json is valid for the conversations /conversations/send endpoint. You can also use the same structure for the content
field on these endpoints too (/conversations/start or /conversations/{id}/messages).
QUESTION
I'm using messagebird omnichannel widget for my website. And put the snippet code already. The widget runs great BTW.
I did saw toggleChat function, but it can only hide the chat window.
How can I force-open the chat widget from javascript code ?
...ANSWER
Answered 2020-Jul-31 at 15:39MessageBird developer is here :)
Good catch! There was a small issue with toggleChat
method.
We just fixed it and deployed the fix, you can use toggleChat()
now.
As you mentioned, toggleChat
should do it - to open/hide the widget, but it didn't work. The issue that we had was the following:
you had to pass true
to open the chat and pass false
to close it. It is not obvious when we have the name of the method like toggleChat
, I agree! :)
Anyway, it's fixed but feel free to reach me if you have any other questions about the widget or our other products.
QUESTION
I need to put my zodiac package from vendor folder to packages folder in my root laravel directory in order to customize some data. Currently I made packages folder in root, cut my zodiac folder from vendor/intervetion and paste it in packages folder. Then in my composer.json I put code below.
composer.json
...ANSWER
Answered 2020-May-15 at 23:49In order to achieve that you just need to autoload the package by adding this line to your composer.json
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install messagebird
Add the environment variables to your config/services.php:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page