Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote API #7

Open
OscarGodson opened this issue Aug 16, 2011 · 0 comments
Open

Quote API #7

OscarGodson opened this issue Aug 16, 2011 · 0 comments
Assignees

Comments

@OscarGodson
Copy link
Owner

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/

@ghost ghost assigned OscarGodson Aug 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant