Now that Pownce has released an official API covering features such as posting files, I decided to go ahead and make an AS3 library for it. I just posted it to googlecode and have only done minimal testing on it. I would appreciate any feedback.
The Pownce team did a terrific job with the API. Easy to use and consistent. I had minimal issues while creating the as3 library.
In my opinion (yeah you can skip this) Pownce is a far better user experience than Twitter. Its like a gobot and a transformer or a dell laptop and a macbook or chocolate torte and hohos. That is the best I an come up with that the moment, yes.


I could be missing something here… but this API in my mind is a leap forward in the race with twitter.
// Imports omitted for brevity private const APP_KEY:String = "<your app key>"; private var _pownceService:PownceService; private var _testUsername:String = "<Pownce username>"; private var _testPassword:String = "<Pownce password>"; private function initApp():void{ _pownceService = new PownceService(APP_KEY); _pownceService.setAuth(_testUsername, _testPassword); } // Example of posting a file public function testPostAFile():void{ var file:FileReference = new FileReference(); _pownceService.addEventListener(PownceResultEvent.ON_POST_A_FILE, function(event:PownceResultEvent):void{ var pownceResult:PownceNotesResult = event.data as PownceNotesResult; if(pownceResult.success){ trace((pownceResult.notes[0] as PownceNote).body); }else{ trace(pownceResult.statusCode); trace(pownceResult.message); trace(pownceResult.request); } }); file.addEventListener(Event.SELECT, function(event:Event):void{ _pownceService.postAFile("all", event.currentTarget as FileReference, "File upload test"); }); file.addEventListener(ProgressEvent.PROGRESS, function(event:ProgressEvent):void{ trace(event.bytesLoaded + "/" + event.bytesTotal); }); file.browse(); } private function testGetNoteList():void{ _pownceService.addEventListener(PownceResultEvent.ON_GET_NOTE_LIST, function(event:PownceResultEvent):void{ var pownceNoteResult:PownceNotesResult = event.data as PownceNotesResult; if(pownceNoteResult.success){ trace(pownceNoteResult.notes.length); }else{ trace(pownceNoteResult.statusCode); trace(pownceNoteResult.message); trace(pownceNoteResult.request); } }); _pownceService.getNoteList(_testUsername,null, 100, -1, -1); }
I’m going to continue to test the library and improve the documentation. Let me know if I missed anything (outside of OAUTH).
Add me to your Pownce http://pownce.com/InitApp/
Existing issue:
One method is not currently working. It is the retrieval of the send to list. I’ve posted information about the issue to the google pownce group and hopefully it will be resolved soon.



