$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, Jan 20, 2009 at 1:44 PM, Cameron Kaiser <[email protected]>wrote:

>
> > Could I possibly get an example of how to use the "source" when
> > sending one of my users status updates?
>
> They'll tell you the key to use when you get your confirmation back, but
> in general you simply pass source=<sourcekey> as part of your POSTed
> arguments.
>
> --
> ------------------------------------ personal:
> http://www.cameronkaiser.com/ --
>   Cameron Kaiser * Floodgap Systems * www.floodgap.com *
> [email protected]
> -- The moon may be smaller than the Earth, but it's farther away.
> -------------
>

Reply via email to