Mobile Phone no. verification - mobile

I am designing a website.I want to validate the mobile no. entered by the user on the registration page, by sending a verification code to his mobile phone. Can anyone give me pointers to how should i proceed with it??

i Proudly recommend cognalys (note: I work for cognalys)
Because it provides an elegant API to verify international mobile numbers which can be integrated on any platform .
Step1 :
https://www.cognalys.com/api/v1/otp/?app_id=YOUR_OTP_APP_ID&access_token=YOUR_OTP_ACCESS_TOKEN&mobile=MOBILE
it will generate a missed call to the requested mobile number . And return a keymatch (to authenticate step 2 ) and otp_start ( the first five digits of the missed call number )
Step 2 :
https://www.cognalys.com/api/v1/otp/confirm/?app_id=YOUR_OTP_APP_ID&access_token=YOUR_OTP_ACCESS_TOKEN&keymatch=KEYMATCH&otp=OTP
Ask your user to enter the last five digit of the missed call number concatenate otp_start and last five digit for parameter otp and hit the API including keymatch
You are done ! . It uses a unique technique to verify mobile number

There are two options, depending on your budget.
Option 1 - buy an SMS gateway and install it on your server. You can then call an API from your server-side script that will send an SMS - you will need to supply the mobile phone number and the text content. This is the more expensive option unless you have a lot of volume.
Option 2 - use an SMS gateway service. In this case, someone else operates the gateway and you call their API to send messages. You normally buy "bundles" of texts to use this, so the cost depends on the number of texts you buy.

Uh, that really depends on what you're doing.
You can, for example, connect a phone to the server and send messages using a solution like gnokii or something like this. Or you can use one of email/www to SMS gates that are out there, on the internet.
On the other hand, you can reverse your usecase a bit. Instead of sending a confirmation code to the user (and, I guess, asking him to enter it back on your site) you can display a confirmation code to the user and ask to send a text message to the number you display.
This makes a user having to text you. First it lowers your expenses (if you pay for the message) and second, can prevent the evil users from trying to DOS your SMS system.

Probably the easiest solution is to use some webservice for sending SMSs.
For an example see this: http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx

Related

Porting an Alexa Skill - completing or continuing the dialog

I have a skill in Alexa, Cortana and Google and in each case, there is a concept of terminating the flow after speaking the result or keeping the mic open to continue the flow. The skill is mostly in an Http API call that returns the information to speak, display and a flag to continue the conversation or not.
In Alexa, the flag returned from the API call and passed to Alexa is called shouldEndSession. In Google Assistant, the flag is expect_user_response.
So in my code folder, the API is called from the Javascript file and returns a JSON object containing three elements: speech (the text to speak - possibly SSML); displayText (the text to display to the user); and shouldEndSession (true or false).
The action calls the JavaScript code with type Search and a collect segment. It then outputs the JSON object mentioned above. This all works fine except I don't know how to handle the shouldEndSession. Is this done in the action perhaps with the validate segment?
For example, "Hi Bixby, ask car repair about changing my tires" would respond with the answer and be done. But something like "Hi Bixby, ask car repair about replacing my alternator". In this case, the response may be "I need to know what model car you have. What model car?". The user would then say "Toyota" and then Bixby would complete the dialog with the answer or maybe ask for more info.
I'd appreciate some pointers.
Thanks
I think it can easily be done in Bixby by input prompt when a required input is missing. You can build input-view to better enhance the user experience.
To start building the capsule, I would suggest the following:
Learn more about Bixby on https://bixbydevelopers.com/dev/docs/dev-guide
Try some sample capsules and watch some tutorial videos on https://bixbydevelopers.com/dev/docs/sample-capsules
If you have a Bixby enabled Samsung device, check our marketplace for ideas and inspirations.

alexa phone call hash/pound sign available?

I use Alexa at home, and now it has the option to place phone calls for free within the USA or Canada.
This is initiated by saying, for example, "Alexa, call 1-XXX-YYY-ZZZZ"
However sometimes you get to an automated menu that wants a number and then either a "#" or "*" symbols. I tried saying "asterisk", "pound", and "hash" but none of these were recognized.
Is there a way to enter these symbols when using Alexa calling?
If you follow this link
https://www.amazon.com/gp/help/customer/display.html?nodeId=202136300
It mentions
Note: Alexa Calling does not currently support calls to the following
types of numbers:
Emergency services numbers (e.g. “911”)
Premium-rate numbers (e.g. “1-900” numbers, or toll numbers)
N-1-1 numbers / abbreviated dial codes (e.g. “211,” “411,” etc.)
International numbers (numbers outside of the US, Canada, and Mexico)
Dial-by-letter numbers (e.g. “1-800-FLOWERS”)
I guess Alexa does not support calls with an automated menu.

How to identify device uniquely?

Firstly, I know about the duplicates. We're not talking about iOs/Android/KindOfDevice-only, as the others & cookies are not the way I want to go.
So I want to bypass the need of a password or something by "binding" my service (which is only an idea by now) to the device used.
An E-Mail and stuff would be needed of course, to keep your devices bundled.
What would your approaches be?
My thoughts so far
My first idea was using the mac-adress, because I heard that they're unique. But a quick google told me that's not really true.
On Phones I could use the phone number or the IMEI, but I don't want it to be restricted to phones, it should be usable by web, too.
I guess when we talk about a web-solution, stuff would get even more tricky because browsers won't let the service go really deep into the system and stuff?
Of course I guess there needs to be a combination of two or more things. So two not-so-unique things combine to an 99%-unique-thing?
I just need some help about how to go on with this problem, a direction, because if you google terms like "unique device identification" you only get this medicine-thing..
In my project I use
var secureUDID = (UIDevice.current.identifierForVendor?.uuidString)!
which - Returns a string created from the UUID, such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”.
UUID - An alphanumeric string that uniquely identifies a device to the app’s vendor.

IMAP - JavaMail - How to know which messages to process?

What I want to achieve:
I am coding a Java program that uses IMAP to connect to some gmail accounts every 5 minutes and extract information from some messages.
I want to check all the messages (incoming and outgoing) and take only the ones I have not processed. By "processed" I do not mean only "read" or "seen" messages. My application does not care whether or not another user has accessed that account and read a message. My application needs to keep track of which was the last message it processed and, the next time it goes through the messages, start with the first non-processed message.
I do not want to change anything in the messages. I do not want to mark them as seen or read.
What I have implemented:
Establish IMAP connection.
Open and access all messages in "[Gmail]/All Mail" folder.
What I have tried:
I have been reading about UID and message number, but I am not sure if any of them could help me achieve what I want. Maybe UID could, but: how do I retrieve it with JavaMail?
I found Folder.getMessages(int start, int end), but I think it refers to the index of the message in a folder, which I believe can easily change.
Can anyone provide some guidance at what is the best approach to take here?
Thanks!
IMAP UIDs are relative to the folder containing the message. I don't know how Gmail handles UIDs for messages in the "[Gmail]/All Mail" folder, but if it does the right thing you could use the UIDFolder interface to get the UIDs. And as described, once you've processed a certain UID, all the new messages will have larger UIDs, which can make processing more efficient.
The alternative is to use Message-IDs, which has a different set of problems...

Akismet being too harsh?

I'm using Akismet for my spam protection on my web page. It won't even let users post something like, "Hey guys check this out!". I was hoping that I could just get rid of links and have them check the posters IP to see if it had been logged, but not block something so simple.
Is there a way to decrease the harshness through Akismet? I'm using the .NET 2.0 library here http://www.codeplex.com/wikipage?ProjectName=AkismetApi
For questions about Akismet you are always welcome to drop us a line - http://akismet.com/contact/
For cases like this the first thing I suggest is making sure that you are sending the correct data for the Akismet API call - http://akismet.com/development/api/#comment-check - since sending wrong or insufficient data can reduce the accuracy.
Second, if Akismet makes a mistake you should be sending the data back via the Submit Ham and Submit Spam API calls. This allows the Akismet system to learn more about what you consider spam/not spam on your site.
I'd suggest not using Akismet at all and just managing it yourself. You could write a regex to remove the links from postings: http://www.jhartig.com/2010/02/perfect-regex-for-removing-links-when.html
Instead of using one of these anti-spam engines, have you thought about using Facebook the way TechCrunch does? It is very effectively at not allowing spam or flamewars because it's not anonymous.
The other things to use is ReCaptcha, to keep the bots out which is probably the cause of your spam problems in the first place. http://www.google.com/recaptcha
hey here are my two cents to the topic:
try something that webcrawlers hate!! something they can't understand at ALL!!
you guessed it right pal!! FLASH!!
If I were you would use something flash like: flexi commment or something

Resources