Easy xAuth and status updates from JavaScript
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
MIT-LICENSE
README.md
index.html

README.md

Simply Tweet

Simple library that lets you authenticate your app with Twitter using xAuth and then update the status. That's all it does at the moment.

Sample usage

  • Add sha1.js, oauth.js and simply_tweet.js to your project

  • Initialize Twitter instance with your consumer key and secret:

      var st = new SimplyTweet(<consumerKey>, <consumerSecret>);
    
  • Authenticate user with his Twitter username and password. Update his status afterwards.

      var failureCallback = function(msg) { alert(msg); }
      st.authenticate('mark', 'smith', function() {
        st.updateStatus('new status', function() {
          alert('Status updated');
        }, failureCallback);
      }, failureCallback);
    

License

Copyright (c) 2011 Aleksey Gureiev, released under the MIT license