core-documentation

Game of ASK

List games

GET /ask/games

Auth

NO

Paging

NO

Response

請參照 /console/ask/games

Get a single game BY SLUG

GET /ask/games/:slug

Auth

NO

Paging

NO

Response

請參照 /console/ask/games/:slug

Get the latest config of a game BY SLUG

取得某個game最新的ASK_Game_Config,新舊順序以create_date為準

GET /ask/games/:slug/config

Auth

NO

Paging

NO

Response

{
  id
  game // game ID
  push_threshold
  push_duration
  data: {} // JSON object
  create_date // 特別需要create_date,告知使用者最新config生效時間
}

Get marked questions of a game BY SLUG

GET /ask/games/:slug/marked_questions

Auth

NO

Paging

NO

Response

{
  game_id
  questions: [
    {
      question: {} // questionObject
      mark
      data: {} // JSON object
    }
    ...
  ]
  players: [
    {
      persona_id
      questions: [
        {
          question: {} // questionObject
          mark
          data: {} // JSON object
        }
        ...
      ]
    }
    ...
  ]
}