Waffle API
  1. Game Service
Waffle API
  • Overview
  • Authentication
    • Get access token
      POST
    • Refresh token
      POST
    • Revoke token
      POST
  • Game
    • List games
      GET
    • Get loyalty program by ID
      GET
    • Create new game
      POST
    • Update game by ID
      PUT
    • Delete game by ID
      DELETE
  • Ticket
  • Game Account
    • List game accounts
      GET
    • Get game account by ID
      GET
    • Search game accounts
      POST
  • Report
  • Game Service
    • Gen Token
      POST
    • Login
      POST
    • List games
      GET
    • Verify Session
      GET
  1. Game Service

Login

Testing
Develop Env
https://waffle-game-service-dev.nextzy.com/api
Develop Env
https://waffle-game-service-dev.nextzy.com/api
POST
https://waffle-game-service-dev.nextzy.com/api
/v1/auth/login
Last modified:2024-05-21 10:11:04

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "username": "demo1",
    "gameCode": "G001",
    "opToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxLCJ1c2VySWQiOjF9.cjto53wITrelmruUs8lOMdWSifmCEahXyVn9WgJL26k"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://waffle-game-service-dev.nextzy.com/api/v1/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "demo1",
    "gameCode": "G001",
    "opToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxLCJ1c2VySWQiOjF9.cjto53wITrelmruUs8lOMdWSifmCEahXyVn9WgJL26k"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "statusCode": 200,
    "data": "https://feem-nextzy.github.io/volleyballdemo?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRlbW8xIiwiY3VzdG9tZXIiOiJhMDY3ZTQ5Yy1hNDBiLTRjNGQtOTliMS1kODM0NTliYjk0YzYiLCJnYW1lQ29kZSI6IkcwMDEiLCJvcFRva2VuIjoiZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SmpkWE4wYjIxbGNrbGtJam94TENKMWMyVnlTV1FpT2pGOS5janRvNTN3SVRyZWxtcnVVczhsT01kV1NpZm1DRWFoWHlWbjlXZ0pMMjZrIiwiaWF0IjoxNzE2Mjg1NzI1LCJleHAiOjE3MTYyOTI5MjV9.9d-6eYLYq2PT4yo79N8Esa3liSCHwBgGHNvh6NifZus",
    "timestamp": "2024-05-21T18:02:05+08:00"
}
🟠401Unauthorized
Modified at 2024-05-21 10:11:04
Previous
Gen Token
Next
List games
Built with