I want to export everyone who has reply stop (opt out) for my messages. I see that my options are
API. However, through the API I can see that I get everything in pages of 50 messages, so I have to go and do a lot of code to go page by page, message by message just to check if the content is stop. Seems a bit unnecessary for a 1 time job.
From the console in my account, however when each time i try to filter on status received I get the following error, and when I dont filter I get error:
Your export request has more than 10,000 records, please filter your results and try again.
Surely there must be an easy way that I can get all the list of numbers that had opt out?
This answer above is not strictly true as of October 2020. Twilio now has an "insights" dashboard that allows you to view and download "Opt outs Received". When you click on that dashboard you are able to see and download the information.
It is under: Programmable Messaging -> Monitor -> Insights
Our account has "Opt-Out Management" enabled and this addition has been a game changer in finding out what users have or have not done in our system.
There isn't a way to export all opt-outs for LC's/TF's that Twilio maintains on your behalf but opt-outs are forwarded to your application for logging as well as added to the Twilio maintained opt-out list. Your application can keep track of the opt-outs this way. You can find more details in the Help Center article below.
Twilio support for opt-out keywords (SMS STOP filtering)
"When Twilio receives one of these replies, we will create a "blacklist" entry on our side, and then pass the message on to your webhook. Once we have a blacklist entry for a particular recipient phone number, any future attempts to message them will be met with a 400 response from our API, along with Error Code 21610 - Message cannot be sent to the 'To' number because the customer has replied with STOP. Recipients can disable this message stop, and resume receiving messages with the START, YES, or UNSTOP commands as outlined below."
Also, if you use the Twilio helper library for the respective language, it handles the paging for you, for example, for Node.js, reference.
Usage and Migration Guide for Twilio's Node.js Helper Library 3.x
"One of the biggest advantages of twilio-node 3.x is that it automatically handles paging for you! In both list and each, you can specify the maximum number of instances to grab (limit), and the page size (pageSize). The library will take care of everything else."
Related
im new to this form and joined because I use Twilio for my business and had no other place to go for help. Long story short, I sometimes use my Twilio number to send text messages to our customers regarding new products/updates - usually 500 - 1000 messages at a time (over the period of maybe once or twice a month).
Usually how I use Twilio is through ZAPIER, once a contact has a certain tag added from my CRM, I set it so that the tagged contacts will get a text message - it usually works but in May I've tried it several times and it hasn't worked at all.
So I switched to using Google sheets with the script feature of adding my Twilio information and tapping "send sms" on top (Today was the first time I used it). Initially it said all of the messages were sent, but when I checked my Twilio balance - it was relatively the same... so I dug deeper and checked my logs, I realized that all but 3 of the 550 text messages were "delivered" and only those three were received.
It seems like there is some type of issue, as its impossible that only 3 people would open a text message - I usually get a good amount of interest from these blasts.
When I used Zapier this month none of the messages would even get sent, so I'm not sure what's going on.
Has anyone dealt with anything like this? Please share! NOTE: Im a newbie here.
I made a simple chatbot using the studio template and it works fine. However, it then loops after the last response. So let's say I give the user 2 choices, Y and N. After they say Y they get a response but if they message the bot again they get the initial message once again to loop the process. How do I stop this? In the docs I only found info on how to stop all incoming messages but this isn't what I want. I just want to end the convo for good as in my application it has a one time use intention. Thanks.
Twilio developer evangelist here.
There's not really a way to stop incoming texts. What you want to do in this case is stop responding to an incoming text after the initial flow through.
The way to do this would be to use Twilio Functions and function widgets to store the numbers that have successfully completed the questions (you could use any database for this, if you want to keep it within Twilio then Twilio Sync can help here). Then you can insert a function widget at the start of the flow that retrieves whether the number messaging has completed the questions and combine with a split widget to decide whether to send the first message or just complete the flow.
Let me know if that helps at all.
I'm new to IOS development and wanted to make an app for learning purposes. My idea is that I have a Single Webpage that has a live count of how many people are in the gyms on my University's Campus.
How can I pull data from that webpage and show it on my app with a little bit of arithmetic such as :
Database how many people are usually in the gym at a particular time and then give predictions.
let users chose a preferential gym and give them notifications based on their regular check in times
if the rate of entry in the gym is high, then notify users to avoid going then. and vice-versa.
I don't want answer to all the above, but if you could give me a heading, that would be awesome!
EDIT 1:
The webpage looks like this : https://studentaffairs.psu.edu/CurrentFitnessAttendance/
Your question is too vague for a specific answer.
You need a back-end API into your web page. It could be as simples as a PHP or Python script that responds to http get requests and returns JSON data with the statistics you want. You'd then write your app to issue the appropriate query, parse the response, and display the results to your users.
Notifications would be more complicated. You'd probably need to set up remote notifications, which would require support on the server side and registering with Apple' remote notification service.
I can get the Information of user data and email address from google api with help from this link.
But my task is to get all user mails from a Gmail account, and display them in a table view.
I checked the Gmail API but can't get enough reference.
Is there any way to do it ?
You probably want to look into threads. While normally a programmer would probably think of background processes when talking about threads, Google refers to "groups" of messages as threads (how it groups an email and replies into a single message in the client). While the API Reference for threads has an example in Java, it shouldn't be too hard to translate it into Obj-C if you're already set up to make other calls to the Google API.
Specifically, look into the list method (linked above). Alternatively, you could use messages.list but they will be much less organized. Also know that I'm pretty sure you'll need to increase the maxResults as I believe the default max is 100.
Is there a framework built in rails that lets me do something like send a message and then based off of user preferences automatically determine whether a text message, voice message or email message should be sent (or any combination of the 3 options)?
Also, if there is a framework like this, does it have support for receiving text messages or email messages and taking actions?
I know this is a big ask. The reason I am asking is because I have started implementing a system like this and am considering making it open source but I am curious if there is anything out there like this already that I should learn from first before publishing my system.
A full blown framework? No.
A helper library that does 95.2% of what you're looking for? Yes.
Using the Twilio gem - https://github.com/twilio/twilio-ruby - you can send SMS or Voice with a handful of lines of code. You don't need to know their mobile carrier either, you can just send the SMS/Call for pennies per message/minute.
If you need a hand with it, I'm happy to help. You can reach me at keith # twilio.com.