Skip to content

Quote API #7

@OscarGodson

Description

@OscarGodson

I think an API would be pretty neat and pretty simple. You could have a PHP script that simple grabs the right quote(s). The end user could use something like:

http://quotesonjavascript.com/api/quote/12

Would return the quote with an id of 12. Or,

http://quotesonjavascript.com/api/quotes/?count=100

That grabs 100 quotes, and to get the next page of 100...

http://quotesonjavascript.com/api/quotes/?count=100&page=2

It'd be awesome to do something like:

http://quotesonjavascript.com/api/author/oscar+godson

and it'd return all the quotes by me.

The final one that might be kinda cool is to allow a nice widget to be dynamically created with one of the calls above, lets say:

http://quotesonjavascript.com/api/quotes/?count=100&type=html

And it creates something like:
http://sandbox.sebnitu.com/jquery/quovolver/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions