how to SMS notification send by laravel - notifications

I have Paid Bulk Sms Panel but not setup how to customer buy product after send sms by laravel project.
Please help me anyone
API URL (GET & POST) : http://sms.natoreit.com/smsapi?api_key=(APIKEY)&type=text&contacts=(NUMBER)&senderid=(Approved Sender ID)&msg=(Message Content)
route
{
type : "post",
url : "http://sms.natoreit.com/smsapi",
data : {
"api_key" : "{your api key}",
"senderid" : "{sender id}",
"type" : "{content type}",
"scheduledDateTime" : "{schedule date time}",
"msg" : "{your message}",
"contacts" : "88017xxxxxxxx+88018xxxxxxxx"
}
}
Route::post('/order/confirm','WelcomeController#order_confirm')->name('order_confirm');
public function order_confirm($id)
{
?????????????????????????
}
Need to SMS Send Customer phone number

You can use Laravel SMS API plugin to send SMS easily in Laravel.
You need to define your SMS Gateway config in config/sms-api.php.
Once done, you can use it as:
smsapi()->gateway('GATEWAY_NAME')->sendMessage("TO", "Message");

Related

Voximplant SIP call without registration

I try to make a call between Voximplant applications in Voximplant via SIP without registration and get this error: SIP/2.0 407 Proxy Authentication Required
Here's my code:
// outbound call to geo.app
geo = VoxEngine.callSIP("user#geo.***.voximplant.com", {
"callerid": prefix(e.callerid),
"displayName": app_name,
"extraHeaders": {
"X-lead-id" : lead_id,
"X-caller-id" : caller_id,
"X-url" : msa_url
}
})
What is the issue?
You need to add a domain to your callerID, like this:
"callerid": prefix(e.callerid)+"#1.2.3.4",

Is it available to pass interruption-level (iOS) through firebase cloud message?

Trying to send push notification throug FCM using
POST https://fcm.googleapis.com/fcm/send
Is a way to send interruption-level to aps on push notification?
According to the HTTP API spec you can provide the APNS payload via apns key in JSON with the appropriate values:
{
"apns": {
"payload": {
"aps": {
"interruption-level": "active"
}
... other APNS-specific keys such as alert, title
}
},
... your other keys such as targeting
}
Note that for some interruption-level values to work (critical or time-sensitive) you need to have the app signed with the correct entitlements.

skype for business conversation API

We are trying to use UCWA 2.0 API for integrating Skype for Business Online. Using MS developer account(Azure AD tenant) with free trial.
After home pool server discovery when we create the application resource we get limited resources links in the response of POST
UCWA 2.0 API documentation mentions many resources and links for all of them are not provided in the response of above POST.
Quesiton -1 : Are all UCWA 2.0 REST resources available for use with Skype for Busines Online? If not then which are not exposed and when they will be available?
Question 2:
We are struggling specially with conversationlogtranscript. Objective is to get the chat transcript of chat conversation in a meeting .
What we have tried is here:
Hit to POST https://webpoolmaain102.infra.lync.com/ucwa/oauth/v1/applications/10241512914/communication/makeMeAvailable ( to add modalities like messaging)
with body
{
"audioPreference" : "PhoneAudio",
"phoneNumber" : "4255552222",
"signInAs" : "BeRightBack",
"supportedMessageFormats" : [
"Plain",
"Html"
],
"supportedModalities" : [
"PhoneAudio",
"Messaging"
]
}
returns 204 No Content
Hit to PUT https ://webpoolmaain102.infra.lync.com/ucwa/oauth/v1/applications/10241512914/communication, (where we are trying to enable a specific parameter "conversationHistory")
returns :
428 Precondition Required with If-Match header as 3fc81bb8-98f5-48b3-8981-d2fbd05305f. or 1529525322 (communications etag value)
Response body in both base : {
"code": "PreconditionRequired",
"message": "Your request couldn't be completed."
}
here body of this PUT as below:
{
"simultaneousRingNumberMatch" : "Disabled",
"videoBasedScreenSharing" : "Disabled",
"rel" : "communication",
"audioPreference" : "PhoneAudio",
"conversationHistory" : "Enabled",
"lisLocation" : "samplevalue",
"lisQueryResult" : "Succeeded",
"phoneNumber" : "tel : +14255524222",
"publishEndpointLocation" : true,
"supportedMessageFormats" : [
"Plain",
"Html"
],
"supportedModalities" : [
"PhoneAudio",
"Messaging"
]
}
Header of this PUT is as below:
If-Match:3fc81bb8-98f5-48b3-8981-d2fbd05305f
Authorization:Bearer
Accept:application/json
Content-Type:application/json
Host:webpoolmaain102.infra.lync.com
Here we have tried "If-Match" header with both : (1) "3fc81bb8-98f5-48b3-8981-d2fbd05305fc": (this value comes with text "please pass this in a PUT request") and (2) "etag": "1529525322" . Both from "communication" section inside embedded of the application resources.
So both ways to enable conversationHistory settings through communication resources is giving 428 issue which shoudl not come as we are passing "If-Match" header already.
Can you pls suggest if we are doing something wrong here and how can we get "conversationLogTranscript" of a user's meetings
Regards,
Sourabh

Firebase Cloud Messaging topic send, message does not show in Notifications and is never sent

I am using the REST api and I am trying to send to a topic. I know the topic exists because I can see in the Notification console that the topic is there. And I can send a test message through the console and that works.
However, when I use the REST api, I get an http status 200 response with json {"message_id":8769790390495267408} which looks like a successful send. However, the message does not show up in Notifications and the message is not sent to subscribed clients.
My message looks like, which is from the docs
https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to": "/topics/foo-bar",
"data": {
"message": "This is a Firebase Cloud Messaging Topic Message!",
}
}
And I am using the "Server key" and not the Web api key.
Thanks for any help.
For iOS, try using notification instead of data. Then add in the priority and set it to high. The payload should look something like this:
https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to": "/topics/foo-bar",
"priority": "high",
"notification" : {
"body" : "great match!",
"title" : "Portugal vs. Denmark",
"icon" : "myicon"
}
}

Twitter API 1.1 does not work?

According to the Twitter API 1.1 documentation, this should return data:
https://api.twitter.com/1.1/users/show.json?screen_name=rsarver
But I keep getting
{"errors":[{"message":"Bad Authentication data","code":215}]}
Am I doing something wrong?
As the Twitter API 1.1 documentation indicates, you need to be authenticated in order to access users/show.
You can use codebird js library for getting tweets. All you need is to create an app on twitter and note down the following :
1.Consumer Key
2.Consumer Secret Key
3.Access Token
4.Access Token Secret
Download codebird js Library from here : https://github.com/mynetx/codebird-js
USAGE :
var cb = new Codebird;
cb.setConsumerKey('YOURKEY', 'YOURSECRET');
cb.setToken('YOURTOKEN', 'YOURTOKENSECRET');
cb.__call(
'oauth2_token',
{},
function (reply) {
var bearer_token = reply.access_token;
}
);
cb.__call(
'search_tweets',
{
q : "your query which you want to search",
from : twitter_user
},
function (data)
{
console.log(data);
},
true // this parameter required
);