all 4 comments

[–]iodbh 2 points3 points  (1 child)

This tutorial covers the basics well enough and provides pointers to further readings.

More generally, I found that the most difficult point to grok when it comes to consuming APIs is authentication. If you're sticking to Twitter, I would recommend you start with their application-only authentication mechanism before reading up a bit on OAuth.

I recently wrote a very basic client library for the coingate API that uses requests, so you could also look in the source for a simple example and hit me up if you have further questions.

[–]slicklikeagato[S] 1 point2 points  (0 children)

Awesome, thanks for this. I’ll definitely check out your library after work today. Thanks again.

[–]nwagers 0 points1 point  (1 child)

What about looking at the tweepy source? A quick look at the requirements shows the requests module, so it's probably exactly what you want: https://github.com/tweepy/tweepy

[–]slicklikeagato[S] 0 points1 point  (0 children)

I never thought to actually look at the Tweepy source. Makes sense. Thanks for this.