Skip to content
simonv3 edited this page Dec 26, 2012 · 16 revisions

IdeaOtter API

The API is semi-open. Some information is free to access by all, while some information is restricted to software that accesses the API with a key and an appropriate signature.

If you want an API key and secret, ask @simonv3 for one.

Everything starts with http://www.ideaotter.com/api/

Ideas

ideas/

Lists all ideas on the site. This is open access for now, but might be restricted later. It will probably also be paginated.

idea/<ID>/

Get the idea associated with the supplied ID.

idea/post/<APIKey>/<APISignature>/

Post the idea text. Returns the Idea with the associated User.

curl -i -X POST -d 'idea_text=<Idea Text>&user_id=<User ID>' localhost:8000/api/idea/post/<APIKey>/<APISignature>/

Users

user/<ID>/

Get information about the user with ID.

user/<ID>/ideas/<APIKey>/<APISignature>/

Get the ideas belonging to the user ID.

user/<ID>/slates/<APIKey>/<APISignature>/

Get the slates belonging to the user ID.

###Logging In

login/<APIKey/<APISignature/

Submit via POST username & password Still not optimal, but a bit less transparent.

example: $ curl -i -X POST --data "username=<username>&password=<password>" http://www.ideaotter.com/api/login/<APIKey>/<APISignature>/

###Registering

register/<APIKey/<APISignature/

Submit username & password via POST Still not optimal, but a bit less transparent.

$ curl -i -X POST --data "username=<username>&password=<password>" http://www.ideaotter.com/api/login/<APIKey>/<APISignature>/

More to come!

Clone this wiki locally