ChatWars API
176 subscribers
4 photos
35 links
Download Telegram
Channel created
We are proud to announce to you (well, not particulary to you, but to anyone) the first (it's the third, to be honest) version of the ChatWars public API. You may request access at @ChatWarsFeedbackBot

For now API provides:
- feeds with info on stock exchange deals and offers
- methods to authorize/identificate users
- payin-payout

* Ever wanted to be notified when your stuff is sold on exchange? Now you can ask your castle bot developer to consume deals for this!
* Do you wish to know when someone misclicks and puts his wrappings for sale for 1💰? There is an offers feed exactly for that reason!
* You think that our tavern dices are rigged? Knock yourself out! You can write your own tavern. With dices! Payments API at your disposal!

(small font mode)
The API is somewhat unstable, because it is an early beta, you can tell by it's 0.3 version number, so more methods to come, stay tuned for news/updates/deprecations @chtwrsapi

Oh, here is the link: https://hackmd.io/s/BkRhPEt4f
And yeah, here is @cwapi group for you (developers only!) to talk about development and share thoughts.
Wow! Some developers are managed to actually consume their queues :) Keep it going guys!
v0.3.1
#fix "OK" response from now is "Ok"
#faq If you experiencing any 'ACCESS_REFUSED' errors while trying to work with queues, please be sure that you aren't trying to declare anything. Everything is pre-declared for you. Just consume/publish right away.
#faq some python users are experiencing timeouts trying to connect to API, so here is simple, presumably working, example https://gist.github.com/BlaQPhoeniX/d75cdd7499217ec225ef6722668eb59b
If you are getting NotRegistered result for getInfo action, this means that we forgot to actually register your application, and payin/payout wouldn't work for you. Please report to feedback or whine a bit at @cwapi chat.
Wellp, there was a little *ahem* outage during the last 5 hours, due to recent network failure. Please report such an incidents to @ChatWarsFeedbackBot
And here comes ... TEH API UPDATE! It looks insignificant, but in fact it is almost a complete rewrite. So except some turbulance here and there.
Starting from version 0.4, applications will be able to read stock and profile info of the users, if they are granted access of course. And there is a new feed for exchange with top 5 offers for each item. Stay tuned.

https://hackmd.io/s/rJb2odE_f
Darnit! Forgot to mention. Rabbit is going (already gone) for maintenance.

PS: But hey, at least I posted it.
And we're live. Thanks for patience.
Well, we are managed to ate all the avaliable RAM on broker, so I had to remove some queues with no consumers and limit the maximum size of any queue to 1Mb (about ~8k messages).
While guilds are springing up like mushrooms after the rain for the developers castle, to kill boredom of stable production here is a small API update.
- user profile now has class, guild, mana and current stamina readings
- the new fan-out named 'yellow_pages' is here as well. Every 5 minutes there will be an array of open shops that are published to the yellow pages (the 🔔 thingie), with all the details you need to know
- for players there is a /revoke command, to (wait for it) revoke all the tokens and effectively deauth all the bots.
Access to the yellow pages is free as usual. All you need to do is request the declaration of your own queue via feedback. Have fun consuming AMQP :)

https://hackmd.io/s/SJK6Zl1RM