-
Notifications
You must be signed in to change notification settings - Fork 0
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/
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>/
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!