Here is an example in cURL
$message = 'this is my update';
$appSource = 'YOUR_APP_SOURCE';
// The twitter API address
$url = 'http://twitter.com/statuses/update.xml';
// Set up and execute the curl process
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS,
"status=$message&source=$appSource");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
On Tue, Mar 31, 2009 at 7:54 PM, Joshua Perry <[email protected]> wrote:
>
> There isn't alot of information out there about Source=Tagname. Does this
> have to be supplied on the querystring? It doesn't seem to be working when
> we send it as a post variable.
>
> Josh
>
--
Peter M. Denton
www.twibs.com
[email protected]
Twibs makes Top 20 apps on Twitter - http://tinyurl.com/bopu6c