Send message and files to whatsapp using laravel - laravel

How can I send WhatsApp message using laravel?
Please help me to find out with the environment setup.
wp::send('work.data', ['user' => $seleteced_pic], function ($m)
Should it be this way?

In Laravel there are no build in ability to send messages via WhatsApp.
You will need to integrate with WhatsApp API or use third party serves.
The first google search give me this result. https://www.twilio.com/blog/create-laravel-php-notification-channel-whatsapp-twilio
One of the third party serves that simplify iteration with messaging serves.
But you could integrate with WhatsApp directly.
https://www.whatsapp.com/business/api

Related

Slack - Interactive button with authentication

What I'm trying to accomplish?
Send an API (chat.postMessage) from a 3rd party app to a Slack user - Done
The message will have two buttons (approve and decline) which the user can click on - Done
Upon clicking on one of the buttons, Slack should send an API back to the 3rd party app - TBD
Before sending an API, Slack should retrieve an authentication token via API - TBD
Note: I've seen in Slack docs mentioning of /incoming endpoint (also /interactive-message). My 3rd party app has a strict set of available APIs. I'm not able to create new API endpoints. Also, I need the payload to be sent in a specific JSON structure.
I've reviewed Slack documentation but I can't figure it out.
Making notifications actionable
I'm technical but not a developer so there might be nuances which I'm missing.
Is there any section in Slack where I can add custom code to accomplish such integration?
If not, how I can accomplish it?
Edit:
I've configured a Request URL (in slack), when I click on one of the buttons in the message, I can see an API request is being sent to the URL.
I'm able to see the payload as well.
My problem is that I need the information to be sent in a different format and to a different endpoint.
What is the best approach to take for this? Do I need to develop a new service to capture and parse the payload and then generate the API request to my 3rd party app?
Ok, so here is how I've accomplished it.
Upon clicking a button in slack, Slack sends an API with a certain payload to the predefined endpoint which you configure (Request URL).
I've used free tier AWS serverless components:
API Gateway and Lambda
API gateway receives the payload and invokes the Lambda function (I used Python as it seems the easier for a non developer)
My Lambda function is processing the payload and has the logic to interact with my 3rd party app in the required way.

How can I verify user mobile number in laravel application after register user?

I want to send a user verification message after user register. How can I do this with laravel?
you have to use SMS Gateway for sending verification code or OTP. you can follow this link for reference
I recommend using Twilio. The library is pretty solid and the api is relatively simple.

How to user Direct Line to create a real-time messaging in MVC

Is there a way to use direct line from a bot framework to create a real-time messaging application? I need call my Bot directly from a custom MVC application.
The Microsoft Bot Connector Direct Line REST API allows me to do this, but not in real time. Currently I have to make a post action to refresh the screen and get these messages, and it requires a client post action. Do you know a way to achieve this real-time?
You might want to take look at the version 3.0 of the Direct Line API, which allows you to use a WebSocket to receive messages.

Chat laravel 5 and notificaciones whit Whatsapp

I'm doing a system with laravel 5 and want have a method of notification alerts to phone mobile. I have read that I can do it with whatsapi but not as useful or good that is.
Any advice or recommendation?
You could do through push notifications, I would recommend you use this library https://packagist.org/packages/davibennun/laravel-push-notification to integrate to Laravel. You can send with push notification a payload with data for your app use it.

MailChimp send email v3.0

The version 2.0 of MailChimp APIs has a campaign send API. However I don't find any similar API on v3.0. I do find an automation API where in I can start a workflow, however it appears from the documentation that workflows can't be created using APIs and can be created only using the GUI.
The requirement is to be able to send emails using MailChimp API. Please advise.
It's now possible to both create and send a campaign through the V3.0 API.
See the 'Action' tab here
You can send to a saved segment, but as far as I can tell, there's no way to create a saved segment via the API.
You actually cannot send one on one email with APIv3.0. Mandrill now takes over for the transactional emails.
It's not yet possible to edit or create campaigns in API v3.0. See the API v3 roadmap.

Resources