goddamnyouryan / coven-api

All the news a programmer needs in once place. http://www.coven.link
8 stars 4 forks source link

Does coven.link have a public API? #5

Closed jackyliang closed 9 years ago

jackyliang commented 9 years ago

This isn't an issue per se, and more of a question.

Does coven.link have a public API one can access? I'm planning on write a command line tool to display coven.link aggregated news.

goddamnyouryan commented 9 years ago

@jackyliang sure does: it's hosted at http://api.coven.link/api/v1/posts

jackyliang commented 9 years ago

@goddamnyouryan You just made my week... I know what project I'm working on next.

goddamnyouryan commented 9 years ago

@jackyliang awesome! Let me know if you need any help. Feel free to customize the api too as you see fit.

jackyliang commented 9 years ago

@goddamnyouryan I love coven.link! Do you have any limits on how many times I should ping the site?

goddamnyouryan commented 9 years ago

@jackyliang ha nope. Though it only updates every 10 minutes so you might want to just re-sync every 10 minutes? I should probably get some basic caching set up on the endpoint, maybe just some memcached or something like that.

jackyliang commented 9 years ago

That would be good! Perhaps a way to know in the API when it was last refreshed so my cli app could synchronize with you (I can cache too)?

On Mar 1, 2015, at 3:59 AM, "Ryan MacInnes" notifications@github.com wrote:

@jackyliang ha nope. Though it only updates every 10 minutes so you might want to just re-sync every 10 minutes? I should probably get some basic caching set up on the endpoint, maybe just some memcached or something like that.

— Reply to this email directly or view it on GitHub.

goddamnyouryan commented 9 years ago

@jackyliang that could work. I think for now just develop with it as is, then we can add memcached as needed, and then a synced_at if we eventually need local caching on your end.