Code Monkey home page Code Monkey logo

oauth's People

Contributors

srohde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oauth's Issues

pin code should be String (not int)

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

POST does not work

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.