• 0

How to use the Twitter API


Question

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!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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!

Link to comment
Share on other sites

This topic is now closed to further replies.