anjanms / DubAPI

A Node.js API for creating queup.net bots.
MIT License
20 stars 10 forks source link

Update: new endpoint for updub / downdub #11

Closed thedark1337 closed 8 years ago

thedark1337 commented 8 years ago

Developer of Dubtrack recently announced on Slack that the endpoint has been updated and an API limit has been added.

anjanms commented 8 years ago

Thanks for the heads up.

Did they say anything about how the API limit works? How it responds and about how long it lasts? I can find out myself, but I'd prefer not to spam their servers if I can help it.

thedark1337 commented 8 years ago

For now the limit is set high at a 10 but later on it might change. After 10 requests on one song it returns error 429. I'll update my commit to change to what you suggested

thedark1337 commented 8 years ago

Amended the commit to your suggestions

anjanms commented 8 years ago

Ah, okay. It's to stop people from repeatedly toggling their vote. That shouldn't be a problem.

Thanks!