FrontlineSMS allows you to text message with large groups of people anywhere there is a mobile signal.

Permalink Reply by Alex Anderson on February 1, 2010 at 5:14am Twitter has disabled basic auth. If you can call a PHP script from your FLSMS instance, you can use oAuth with PHP. Check the docs in Twitter to get the tokens, key and secret for your account.
This is what I'm using. It will require a direct connection to the Internet. If you want to bridge to Twitter over SMS you need to add a "forward" action to one of you keywords, as shown here
The oAuth library is here
Pablo
<?php
require_once 'TwitterOAuth.php';
define("CONSUMER_KEY", "my key");
define("CONSUMER_SECRET", "my secret");
define("OAUTH_TOKEN", "oAuth token");
define("OAUTH_SECRET", "oAuth secret");
//Get the message from the command
$message=$argv[1];
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET);
$connection->format = 'xml';
$content = $connection->get('account/verify_credentials');
//Show credential verification output
//echo $content;
//Sanitize
$message = preg_replace('/[^-a-zA-Z0-9_ ]/', '', $message);
echo $message;
//Post to Twitter
$connection->post('statuses/update', array('status' => $message));
Permalink Reply by Morgan Belkadi on February 25, 2011 at 8:43am
© 2013 Created by kiwanja.net.
Powered by