srohde / oauth Goto Github PK
View Code? Open in Web Editor NEWAS3/Flex OAuth Library
Home Page: http://soenkerohde.com
AS3/Flex OAuth Library
Home Page: http://soenkerohde.com
pin code in the example should be String (not int) so that 0345654 would be "0345654" instead of "345654"
twitter doesn't accept less than 7 digits for the pin code
Using this library together with the oauth-as3 library (both downloaded 27 Jul 2009, both on their own without compiling, I’m lazy) in a Flex app. The psuedo code example at http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air works fine for getting tokens and whatnot but after all that I get asked for id/pass when I try and call the Twitter Update method with the following code within a function call which I presumed should work:
var url:String = ‘https://twitter.com/statuses/update.json’;
var req:URLRequest = oauth.buildRequest(”POST”,url,accessToken,{status:’Test’});
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onSendRequest);
loader.load(req);
Using Charles I know that Twitter is returning an error string of “Incorrect signature”.
On a quick sampling of Twitter methods I can call something with a GET and it works, call a method with a POST and I get a pop up asking for userid & password. Looking at the request header of the previous code I posted I see at the start of the request: “GET /statuses/update.json?oauth_consumer_key=…”
Suspect that code is unable to call a POST method
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.