[swx] updating twitter with SWX and error getting followers messages

Nederflash (Folkert Hielema) info at nederflash.nl
Thu Jan 24 19:32:12 PST 2008


Bennie Jolink wrote:
> Hi all,
> 
> I've got 2 questions, the first:
> How do I send an update to twitter using SWX? I can do it using the SWX 
> service explorer, but isn't there an actionscript example?
> 
var outContent = content_input.text;
var outUser = user_input.text;
var outPass = password_input.text;
var swx = new SWX() //from SWX library
swx.encoding = "POST";
var callParams:Object =
{
	serviceClass : "Twitter",
	method : "update",
	args : [ outContent, outUser, outPass, outSrc ],
	result : [this, onResult],
	timeout : [this, onTimeout],
	fault : [this, onFault]
}	
swx.call( callParams);	

Of course you need to create the onResult and sorts methods to handle 
the responses

> The other is really strange: When I call "getNumFriendsUpdates" it only 
> returns all the updates of one single person that I'm following (funny 
> thing , it's Aral Balkan, but why?). The other people that I'm following 
> don't show up at all!!!

The method getNumFriendsUpdates gets you  the number of updates from a 
user. If you provide for example 'aral' you get the latest 20 updates 
back from aral with his friends (as long as the people are set private)


Hope that helps,

Folkert

> 
> Am I using the wrong method? I just want the same list as on the 
> twitter.com <http://twitter.com> homepage.
> 
> Thanks very much,

> Erik
> www.eerkmans.nl <http://www.eerkmans.nl>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
> 
> 
> ------------------------------------------------------------------------
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.19.10/1240 - Release Date: 23-1-2008 17:47




More information about the swx mailing list