Vonage/Nexmo - Incoming webhook - MMS - How to get the image? - php

I have setup a webhook with postmethod to a CodeIgniter controller script for incoming sms webhook. I am receiving the sms texts. But I do not know to how to get the media if a mms is sent.
I am trying to get the media content through this parameter.
$this->request->getPost('data');

Related

How to send a message to a third-party Telegram bot and retrieve the response using PHP?

I've searched both SO and Google and couldn't find what I need. I'm trying to see if it is possible to send a message to a Telegram bot (which I'm not it's owner/writer) and receive the response. The bot that I'm trying to communicate with through my PHP script will get a text message and in return sends back a proper file regarding the initial request. I want my web server be able to send that request and save the returning file in a specific folder on my server.
Is this possible at all?
What I've been seeing all over is sending messages to users as a Telegram bot. In here I want to do it the other way, sending a message to a bot as a user.
Many thanks

Can I send MMS messages with PHPMailer?

I am trying to send an image message to cell phone like SMS. I used the PHPMailer to email the image like
$mail->addAddress('222222222#txt.bell.ca','');
$mail->addAddress('222222222#mms.bell.ca','');
$mail->addAttachment('img/map.png', 'map.png');
This is sending the text but I am getting
A MIME attachment of type <image/png >was removed here by
instead of the image in iPhone 4. I searched the web for this and I think I must use a MMS Gateway to send the image. Is that the case?
yes you would have to use MMS Gateway to send an image. This is because MMS is Multimedia Messaging Service and SMS is Short Messaging Service so that's you need the MMS gateway to send the image (multimedia)
Hope this helped.

How to receive SMS to a twilio number

I have created a free account in twilio for sending SMS through my website. After my registration I got a twilio number like XXX-XXX-XXXX. I am able to send message to mobile numbers but I don't know how to use this twilio number for receiving SMS. Please help me out on this.
Twilio evangelist here.
The way Twilio notifies you of both incoming SMS message and incoming voice phone calls is by using something called a webhook. This is basically an HTTP request that Twilio makes to a URL that you tell us about. Normally this URL is a web app that you've created and published to a public website.
http://en.wikipedia.org/wiki/Webhook
In your Twilio dashboard, click on the Numbers tab and you will see your trial number.
https://www.twilio.com/user/account/phone-numbers/incoming
Click the phone number and you will see two input fields, one for a Voice URL and one for a SMS url. Just put your URL's there and click the save button.
Now if you send a text message to your number, Twilio will make an HTTP request to the URL you've told us about. You can think of this like a standard Form submit. Twilio will send along parameters like the number the SMS is coming from and the body of the message. The full list of parameters we send to the SMS url is here:
https://www.twilio.com/docs/api/twiml/sms/twilio_request
Your app can grab those parameters and use them however it wants. Your app can also return TwiML instructions to us that tell us to respond to the SMS.
https://www.twilio.com/docs/api/twiml/sms/your_response
You might want to check out our quickstarts for examples of how to receive a text message and and howtos for lots more examples of both sending and receiving SMS messages.
https://www.twilio.com/docs/quickstart/php/sms/hello-monkey
https://www.twilio.com/docs/howto
Hope that helps.
Devin

Twilio : Response application link not working

I am unsing Twilio Rest Api for SMS functionality. My SMS is send sucessfully problem is when user response to SMS, I have to capture that response in my application and send confirmation email to user
I am unable to capture response from application URL.Please give me some idea.
Thanks in advance
The example app here in PHP shows how to build keyword response based upon the body of the incoming text message.
The important thing to note is to fetch the Body request parameter of the message which is simply:
/* Read the contents of the `'Body'` field of the Request. */
$body = $_REQUEST['Body'];
Instead of 'fromBody'.

How to send app request in iphone/php webservices to facebook in using query string

I want to send request by simple query string but I have problems with getting notification on facebook. Also when I send the request and I pass the id of receiver in (to) parameter then I get the request on my own id.
How could I send the app request and get the notification on facebook ?.
I use php webservices for iphone so please do not write pop type. Please, use query string concept so i will pass it in curl.

Categories