Forgot to send this to the list.

Begin forwarded message:

From: Christopher Vollick <[email protected]>
Date: November 28, 2009 9:42:50 AM EST (CA)
To: "Milen Mihalev" <[email protected]>
Subject: Re: [StatusNet-dev] A little help

On 27-Nov-09, at 11:02 PM, Milen Mihalev wrote:
Hello everybody!

I need some help. I’m tryig to make a php script that will connect to sms gateway provider.

The script will get the gsm number submitted from sms gateway and will check it in statusnet db.

If the number don’t exists or is not validate it will return a sms to the user with proper error msg.

If number exist in the db, it will save a notice for the user that this gsm number belongs.

The problem is that I’m not familiar with status.net and I need a little help.

What function to use for saving user statuses (notices). And wich class files I need to include in my php file?


Current the SMS receiving seems to be done in scripts/maildaemon.php.
In there you'll see it checks to see who it's from, then it runs "handle_command" which responds to the special commands like "last" or "whois" etc. Then it shortens any links, then makes sure that the command is within the site limits.
Then, it calls Notice::saveNew to actually make the notice.

_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to