Starting points in various languages for participants in the First Takes All game
You do not need to bother about this if you checkout one ofr the starting points here, but if you want to use another language or setup yourself here is how.
You read questions by doing a http get. And post answers by doing a http post.
- SERVER_ADDRESS The address to the server where the game is hosted
- PLAYER_ID The player id you get when registering
- CATEGORY The category of question you want to read or answer. For example Echo
Do a http get to
SERVER_ADDRESS/game?playerid=PLAYER_ID&category=CATEGORY
You will get an json array containing the questions
Do a http post to
SERVER_ADDRESS/game
The payload should be a JSON like this:
{"playerId":"PLAYER_ID","answers":[]}
You should put the answers into the answers array
Distributed under the Eclipse Public License (http://www.eclipse.org/legal/epl-v10.html)