Sign in to follow this  

How to use the Twitter API

Recommended Posts

DrJohnSmitherson    131

I am new Java programmer and I want to learn how to use an API and I want to start with Twitter.

How do I use the api to send credentials in Java? I've never used the HTTP GET so I'm having trouble on learning that. I'm also trying to learn about tokens.

How do I use the api to grab the followers in Java for example?

It seems I need to use HTTPConnection but the tutorials online aren't really helping me. I just really need some help with this. Maybe examples with good comments and explanations?

Any tips for working with APIs in general?

Thanks Neowin!

Share this post


Link to post
Share on other sites
Max Norris    2,071

If you want to save yourself some frustration, you could try using one of the various third party libraries that are available that make it significantly easier to work with. Twitter4j is a good one to start with for Java, well documented, has a bunch of examples and is pretty easy to figure out. Wraps up pretty much everything, OAuth, streaming, the works.

http://twitter4j.org/en/index.html

Share this post


Link to post
Share on other sites
DrJohnSmitherson    131

If you want to save yourself some frustration, you could try using one of the various third party libraries that are available that make it significantly easier to work with. Twitter4j is a good one to start with for Java, well documented, has a bunch of examples and is pretty easy to figure out. Wraps up pretty much everything, OAuth, streaming, the works.

http://twitter4j.org/en/index.html

I downloaded that but was really confused. I'll find the examples to see if it helps! Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.