Code Challenge 19 – Post to Your Favorite API

By on 15 May 2017

There is nothing like a challenge to bring out the best in man. – Sean Connery

Hi Pythonistas, a new week, a new ‘bite’ of Python coding! This week we have another nice free-form challenge for you: after last time’s API challenge success, we have a part 2 this week where we will let you post to your favorite API.

The Challenge

We keep it free-form so you can go wild on consuming your favorite service(s) / data. The difference with last time is that you actually have to edit your account by doing one or more POST requests. Examples:

  • Post (periodic) updates to your favorite social media platform. We really like the Twitter API (see here, here, and here), but you could use Facebook, Linkedin, Pinterest, Instagram, etc.

  • Create playlists of your favorite music with the Spotify API / Soundcloud API / YouTube API.

  • If you like books, playing with the Goodreads API last week, pushing books to your shelve(s) is something this API supports.

  • Google APIs: send an email, add a calendar invite, add a file to Google drive, to name a few.

  • Push a new article/ post to reddit Python or LearnPython using their API.

  • Create a list of your favorite movies with TheMovieDB API.

  • Send SMS with the Twilio API, etc etc … be creative, scratch your own itch!

Still searching for APIs? Last time we linked to these two resources: fun APIs to play with (reddit thread) and programmableweb.


Getting ready

See our INSTALL doc how to fork our challenges repo to get cracking.

This doc also provides you with instructions how you can submit your code to our community branch via a Pull Request (PR). We will feature your PRs in our end-of-the-week challenge review (previous editions).

Feedback

If you have ideas for a future challenge or find any issues, please contact us or open a GH Issue.

Last but not least: there is no best solution, only learning more and better Python. Good luck!


Keep Calm and Code in Python!

— Bob and Julian

Want a career as a Python Developer but not sure where to start?