Skip to content

Instantly share code, notes, and snippets.

@nitinthewiz
Forked from nathanborror/gist:3470564
Created January 19, 2016 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitinthewiz/822b4af64130b397121c to your computer and use it in GitHub Desktop.
Save nitinthewiz/822b4af64130b397121c to your computer and use it in GitHub Desktop.
Readernaut API

Readernaut API

I'm going to be deprecating the current Readernaut API in favor of a newer more built-out version. People using the current version have two weeks to switch over to the new API. Currently you can find your API_KEY by viewing source on any page and searching for "api_key" in the output (this will get better later). Here are some example endpoints:

Notes

  • Old: /services/api/USERNAME/notes/
  • New: /api/v1/notes/note/?username=YOUR_USERNAME&api_key=YOUR_API_KEY&user__username=USERNAME

Books

  • Old: /services/api/nathan/readerbooks/
  • New: /api/v1/readerbooks/readerbook/?username=YOUR_USERNAME&api_key=YOUR_API_KEY&user__username=USERNAME

Goals

  • Old: /services/api/nathan/goals/
  • New: /api/v1/goals/goal/?username=YOUR_USERNAME&api_key=YOUR_API_KEY&user__username=USERNAME

Progress

  • Old: /services/api/nathan/progress/
  • New: /api/v1/goals/progress/?username=YOUR_USERNAME&api_key=YOUR_API_KEY&user__username=USERNAME

This new API is built with Tastypie, if you're interested in what you can do with it you can read over Daniel's documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment