Notification

From WarfishWiki

Jump to: navigation, search

This API allows you to receive http notifications.

In addition to REST/XML/JSON apis there is an http notification system that can be used to alert a script that is your turn. Each time it is your turn Warfish can make a requests to a "base url" of your choosing with the gameid and a unix time stamp for when it became your turn. For example, if you selected "http://cool_warfish_bots.com/bot.cgi?gid=" as your "base url" url each time it was your bot user's turn Warfish would make a request to:

http://cool_warfish_bots.com/bot.cgi?gid=123123123&turnsince=999999999

which is your "base url" with the gameid and turnsince parameters appended. This notification system is enabled on a user per user basis. Please send a "base url" to support if you would like http notification configured.

Personal tools