You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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/
The text was updated successfully, but these errors were encountered: