I want to have a mobile number validate for my site not just string validations ..what i need is to actually validate the mobile number with the same user exists..
one option i know is to send a pin to that mobile number & ask user to put that pin on form submit to validate ...so are there any ready to use services for this to use it on my website or what i have to do for this ...
Also tell if you know any other options available
You could use http://www.twilio.com/ to call the number and have the person respond (press 1 for ok, 0 for not ok) to your call.
But note that calling the number would work if the number was either a land-line or mobile. If you want to make sure that the number is mobile, then SMS is a good idea.
Twilio has an SMS api too.
you can use this service that give you web service that you can use to validate mobile number in any country http://www.data-8.co.uk/integr8/services/mobile_validation.aspx#Demo
Some push agregattors have APIs for HLR-look up, then you could know if number is right and it is active or off, etc.
If it's not super important that someone can fake their confirmation, then you could look at some of the headers received from the network operator containing the user's number: Can a mobile web application access the devices phone number?
Related
I have to perform load test on a Sign UP API using Jmeter.
Sign Up asks for:
valid cell # where system sends SMS code for verfication
Valid Email address where user receives a link for verification
Can any one help for this scenario.
Thanks in advance.
It might be tricky, however you can consider a 3rd-party application like Spikko or 2nr and use mobile automation framework like Appium from JSR223 Test Elements in order to get SMS text from the mobile application. If you don't have a real phone you can use an emulator like Bluestacks or Genymotion
For email it is way easier, JMeter comes with Mail Reader Sampler so you can fetch an email from any real box and extract confirmation URL from there, check out How to Create a JMeter Script to Check Email During Registration AND Grab the Confirmation URL for more details.
You probably should use JDBC Request and get from DB the code/link sent.
But if it's not possible, for email you can concatenate to same gmail +${UUID()}. Gmail at least support sending to same mail if have different suffix:
Here are two different ways you can modify your Gmail address and still get your mail:
Append a plus ("+") sign and any combination of words or numbers after your email address. For example, if your name was hikingfan#gmail.com, you could send mail to hikingfan+friends#gmail.com or hikingfan+mailinglists#gmail.com.
I'm new comer in mobile value added service field. I searched & read other company's presentation for mobile value added service with sms platform. But I can't find the right way. I don't know where to start, which platform or server should use for it. I will explain road map first. I will provide content with sms. If you wanna get the contents from me, you need to subscribe first. Then, I will sent contents to all subscribed numbers daily. Then, I will charge for content daily. Please help me which platform or server should I use?
You can use a short code for that, in which country are you in?
Use Case SMS leaves my platform and goes out to a receiver (SMS). I would like to attach some sort of custom identifier so when the user responds back to the SMS..and my platform received the message..I know how to internally route the response back in my platform.
Any ideas?
Maybe set up a system where when the code is sent out
For instance:
Code - 11832
The user then has to enter this code on your website. A program will then match to see if it's the identical code. So you are then able to log the information
No expert on this though and Where is your code ?
Twilio evangelist here.
There isn't really a great way to attach an identifier to the message itself. You could force the user to prepend/append a code in their reply, but depending on your specific scenario that might not be a great user experience.
Another option is to save the to/from phone number as a unique pair when you send the message. Then as your application receives replies you can check the incoming to/from phone number against what you saved.
Hope that helps.
I need to use twilio call masking similar to how uber does. I need to grab and available number and attach it to a transaction for a period of time. I got basic TwimXML working to deliver a message but how do I connect two numbers on the fly?
I'm working in iOS and Android with Parse.com serving as a temporary back end. Since these are mobile applications I'm hoping to use the native telephone and messaging applications.
My assumption is that I need to grab a number from the number pool. Assign a forwarding number to it. And return that number to my application in the success block of the promise. Then send that number to the telephone/message app. The part I'm not sure about is how to set up a forwarding number on my Twilio number with the rest api.
Any direction here would be greatly appreciated.
Twilio developer evangelist here.
Your assumptions are mostly correct, but as you point out, you're missing the bit about assigning the forwarding number.
If you've used TwiML to reply to an incoming message you are on the way though.
What you need is an endpoint that you can set as the Voice URL for the number you purchase through Twilio. With that endpoint you need to return TwiML that forwards the call onto the right number. That TwiML would look a bit like this:
<Response>
<Dial>
<Number>ONWARD_NUMBER</Number>
</Dial>
</Response>
In order to return that TwiML, you would need to set up a relationship in your database between the two users' phone numbers and the Twilio phone number such that when you receive a call from one of the numbers to the Twilio number, you can look up the other number in the database and use that in the forwarding TwiML.
That is a brief description of how this is supposed to work. There is a longer description of how to achieve this sort of system in our Masked Phone Numbers tutorial. Sadly the tutorial is not currently available in Node.js, but if you read through the instructions you should be able to follow the flow of the application.
Let me know if this helps at all.
I have a problem and i think its have to do with sessions. (at least i want it to be related to sessions because i need to use sessions),
Suppose i have a list of names of people logged in, on my site .
I want that once i press someone's name, that he and I will get a game board. (No confirmation at the moment ..).
Now how do i get the game board , it's obvious. but, how to make that the other user will get one .. ?(the user that i chose from the list).
The other user, he is like a passive user, he suddenly getting a game board.
someone understands?
Thanks in advance .
Seems like you need some COMET/push technology. You may take a look at SignalR which would allow you to push contents to specified clients. Basically all clients will subscribe to notifications from the server and when a particular request comes from an administrator you could then send notification to the selected clients.