From here you need to authorize your Twitter account to make API requests through your app, you will need to grab your newly created consumer key and secret from your app home page.

Keys and Access Tokens Tab

To authorize your account run the following from the terminal:

% twurl authorize --consumer-key key --consumer-secret secret

This should return a URL which you should then open in your browser. You need to authenticate to Twitter and then enter the returned PIN back into the terminal.

Assuming that everything has worked as it should you should now be authorized and able to begin making API calls. A simple example to get you rolling is below, a GET to the user/lookup service, insert your desired Twitter handle and get rolling!

GET user/lookup

That’s it! So dig in there and explore, have some fun, brainstorm and think about the beauty of Open API’s.

Let us know your thoughts and questions on twitter. Keep after it.

If you like this article, please recommend it to help others find it!