Anywhere: Twitter JavaScript API

Posted By Venu Thomas

1 month ago Chirp was made, the official conference for developers of Twitter. And there were several developments around the world Twitter. Among them, a new page for developers of Twitter: dev.twitter.com , where we see new tools. In which we focus, being the closest to the theme of the blog is @Anywhere . @Anywhere is a Javascript API that lets you integrate Twitter with your site in a few lines of Javascript. Before you start using it to register as a developer you provide an API key, for it is the call for an application registration Anywhere . After this step, we must only add to the headers of our web page calling this script:

<script src="http://platform.twitter.com/anywhere.js?id=YOUR_API_KEY&v=1" type="text/javascript"></script>

Once you add this script are the way to initialize @ Anywhere is:

twttr.anywhere(function (T) {
// Your code here ...
});

As you can see it calls a function and pass a callback function with a parameter T (you can call it whatever you want). Which will be executed once the script loaded Twitter @ Anywhere. With this API, now you can do the following:

  • AutoLink Twitter usernames
  • Hovercards
  • Follow Buttons
  • Tweet Box
  • User Login

I invite you to the try. From Wisecodes are preparing some demos that you’ll use to teach during these weeks.

Tags: , , ,

  •  
  • Share with others:

    Thanks for visiting us! If you enjoyed these icons please feel free to share them! Or if you want to know what's going on with WiseCodes.com, follow us!

    One Response to “Anywhere: Twitter JavaScript API”

    1. Hello Nice Infos! really interesting…See you soon…

    2. Earl Corrice your flag on August 30th, 2010 at 8:27 PM

    Leave a Reply

    Anti-Spam Protection by WP-SpamFree

    Locations of visitors to this page eXTReMe Tracker