twilio rest API for event registration and listening - twilio

I'm using twilio rest API to implement a chat iOS app in objective-c. Though twilio has iOS SDK, I'm required to use rest API only. My question is does anyone know how to use twilio rest API for event registration and listening, such as message sending?

Twilio developer evangelist here.
The Twilio Programmable Chat API uses webhooks to notify your application of incoming messages. Note though that webhooks are not fired for events that are initiated from the REST API. Since you are in control of sending messages via the REST API you should be able to notify other parts of your application when you do so too.

Related

How can I reply to a specific message with Twillio API?

I am developing an integration service with twillio api and i need to have the lability to replay to a specific message, same as sliding the message to the left on the app.
thanks.
Twilio developer evangelist here.
As far as I can see, the WhatsApp messaging API does not support responding to a particular message. You can check their messaging API reference here. Consequently, the Twilio API for WhatsApp also does not support replying to a specific message.

Twilio Flex, Intercept Incoming Messages in order to send Slack Notifications

I currently have Twilio Flex set up but need to intercept all incoming messages in order to send slack notifications to reps, if they're offline and need to respond.
Is there a way to intercept (using a webhook) only Incoming messages so that I can send those slack notifications.
Twilio developer evangelist here.
If you go into your Flex project to the Studio dashboard you will find three flows, including the Messaging Flow. Incoming messages are directed to this Flow.
If you open the Messaging Flow you will see that by default it sends the message straight to Flex.
You can add a widget in here to invoke a Twilio Function before sending the message onto Flex. Twilio Functions allow you to write Node.js to perform custom tasks, like sending a Slack notification.

Integrating FlowXO with twilio

How can one create a bot in Flow.xo that listens to twilio messages? In other words can I write a bot in FlowXO to send and receive SMS messages from my twilio account?
Flow.XO allows one to send SMS messages via their twilio integration function, but it only has two functions:
1> Twilio calls
2> Twilio SMS messages
Both these are outward bound, and we can only send messages (calls, or SMS) via twilio from Flow.xo. Can I receive messages in FlowspellingXO from Twilio too? How is this accomplished?
Thanks in anticipation.
Twilio developer evangelist here.
I haven't used Flow.XO before, but a quick look through the documentation suggests that this is the guide for you: https://support.flowxo.com/article/152-creating-a-twilio-sms-bot
Going through that process will create a URL that you will apply to your Twilio number or messaging service. That URL is the webhook URL that Twilio will use to send details about incoming messages so that your bot can respond to replies from your user.
Let me know if that helps!

Twilio whatsapp integration

Is it possible to send/receive SMS from whatsapp using twilio number? Anybody tried twilio with whatsapp? I asked customer care, if it is possible, he said, not sure but many people asked about that.
In case anyone else lands here, Twilio just released a WhatsApp integration via their new Business API
https://www.twilio.com/whatsapp
Twilio developer evangelist here.
Whatsapp do not have an API, so it is not possible to send or receive messages to Whatsapp using the Twilio API either.
If you are looking to send and receive messages to services like Whatsapp, then you might be interested in Twilio Channels. Channels are the various APIs that we are integrating into the one Twilio API so it's easy for you to send to all these third party services.
Channels lets you send and receive messages to services like:
Facebook
Slack
HipChat
Line
SendGrid (for email)
Twitter
Amazon Alexa
Viber
And will be supporting the following soon:
WeChat
Kik
BBM
You can sign up for early access to Channels here: https://www.twilio.com/marketplace/channels

How to Get SMS log from Twilio Webhook

I am making an app in MVC to send/receive SMS using Twilio API. I am done with sending SMS functionality but I am confused to get(Inbound) SMS log sent to Twilio number from user.
There are few article but not enough for me. Please help me.
Twilio developer evangelist here.
I recommend this guide that was built by the Twilio documentation team on How to Receive and Reply to SMS Messages in C#. It will explain what a webhook is, how to use TwiML and how to use that knowledge together in ASP.NET MVC to receive and respond to SMS messages.

Resources