Registering an Application with Twitter
Before we start coding, we have to register our application at the Twitter
website to get API keys and an OAuth access token.
3
OAuth is an authentica-
tion scheme that allows applications to use other applications’ resources. In
our case, we’ll grant our very own application the right to update our Twitter
feed without using our Twitter username and password.
To get all of the information needed, create a new application in the applica-
tions section of the Twitter website.
4
After you’ve logged in, click the Create
New App button and fill out the form:
After you’ve created your new application, go to the Permissions tab and set
the application’s access level to Read and Write. Then navigate to the API
Keys tab and press the Create My Access Token button. It can take a few
moments-refresh the page a few times until the access token is available.
The API Keys tab should contain all information that you need to allow your
application to modify your Twitter status. It should look similar to this:
3.
http://en.wikipedia.org/wiki/Oauth
4.
https://apps.twitter.com
report erratum • discuss
Registering an Application with Twitter • 167
www.it-ebooks.info