AIM + PHP + SMS = User Validation System?
I'm planning on a launching a new service on the web in the near future. Since certain elements of it will be relatively resource-intensive, I'd like to limit the number of accounts to (roughly) one per actual person.
I'd like to do this ala Gmail, where you tell Google your mobile phone number, they text (SMS) you a verification code, and you enter it in. I see that there are a
few services for sending SMS messages over HTTP by embedding fun times in the URL through their APIs, but you have to pay for each message. And they're all, sorta... British.
AOL now lets you send SMS messages to anyone you damn well please, so my question is, is there an easy way to send an AOL instant message from PHP or another script? I'm sure you can, (hence the spambots) but I can't figure out what method I might use. I'm looking into so-called "AIM links" (aim:goim?screenname=, etc.), but they seem to only be a mechanism for an end user to launch their AIM client and prep an outgoing message. If I could use PHP to send a command to GAIM or some other Linux-based AIM client, that'd work too.
Does anyone have any experience with this? Or am I just better off taking the hit and going the SMS-API route? I see AOL offers their
AIM Custom Client documentation & API, (which blew my mind, considering how they used to treat Trillian back in the day)... so I suppose I could throw together a bare-bones, command line AIM client that was able to receive inputs from my PHP script... perhaps...
But, if there's any other way to send AIM messages through a PHP script, (or free SMS messages via some other means), that's definitely preferred. Thanks for listening to my far-too-tired rambles...
You can set up a SMS message in AIM by putting the phone number in the "to" field of a message. What I'd do if I were you is grab the Net::AIM perl module, or a similar module in another language, and write an AIM bot. The bot will keep a persistent connection to AIM, otherwise the service will boot you for connecting/disconnecting. Make it poll a database, text file, or some other resource for new phone numbers to send messages to. Catch the default returned message, and if anyone decides to reply to your bot, store that for later review just in case.
Your basic workflow will be:
1. User signs up on the website
2. Web script puts number in the "to be messaged" queue
3. Bot (or group of bots) polls the queue and grab available numbers to message
posted by mikeh at 6:46 AM on March 7, 2006