How do you set the source from the API

7 views
Skip to first unread message

rbo...@gmail.com

unread,
Oct 24, 2007, 6:39:29 PM10/24/07
to Twitter Development Talk
I am trying to update a status of a user via the methods on the API. I
managed to update my status but it always says updated from web. I've
seen other people update from facebook or whatever so I was wondering
if there is a way that I can customise this label.

I am using this method which comes with the zipped file to update my
status:

public function setStatus(statusString:String):void
{
if (statusString.length <= 140)
{
var request : URLRequest = twitterRequest ("http://twitter.com/
statuses/update.xml");
request.method = "POST"
var variables : URLVariables = new URLVariables ();
variables.status = statusString;
request.data = variables;
try
{
_setStatusLoader.load (request);
} catch (error : Error)
{
trace ("Unable to set status");
}
} else
{
trace ("STATUS NOT SET: status limited to 140 characters");
}
}

Anything I can change to set the source here?

Cheers

Alex Payne

unread,
Oct 24, 2007, 6:43:14 PM10/24/07
to twitter-deve...@googlegroups.com
Please email me off-list and I'll set you up with a source link. Thanks.


--
Alex Payne
http://twitter.com/al3x

Ben Novakovic

unread,
Oct 31, 2007, 8:49:39 AM10/31/07
to Twitter Development Talk
I am also interested in setting a custom source.

On Oct 25, 8:43 am, "Alex Payne" <a...@al3x.net> wrote:
> Please email me off-list and I'll set you up with a source link. Thanks.
>

Reply all
Reply to author
Forward
0 new messages