Authentication
API ในระบบของ Big Poker ใช้มาตราฐานความปลอดภัย OAuth 2.0
Get access token
POST https://{api-domain}/v1/operator/oauth
ใช้สำหรับขอโทเค็น เพื่อเข้าถึง API ต่างๆ ของ Big Poker
Body
grant_type
string
ประเภทการให้สิทธิ์ ต้องมีค่าเป็น "client_credentials"
Yes
client_id
string
client id ในระบบ Big Poker
Yes
client_secret
string
client_secret ในระบบ Big Poker
Yes
HTTP Status: 200 OK
Content-Type: application/json
{
"status": "success",
"data": {
"type": "bearer",
"token": "Y2xtZnNlZGdnMDA4eGl6a2o2OG5tNTh5cA.BoAuxdEyxDALRE703GbHzJKkNf-xBvw",
"expires_at": "2023-09-17T19:19:00.230+00:00"
}
}HTTP Status: 400
Content-Type: application/json
{
"status": "error",
"error": {
"code": "E_INVALID_AUTH_PASSWORD",
"message": "E_INVALID_AUTH_PASSWORD: Password mis-match"
}
}Revoke access token
DELETE https://{api-domain}/v1/operator/oauth
ใช้สำหรับเพิกถอนโทเค็นที่ใช้งานอยู่ ซึ่งจะยุติเซสชั่นที่ใช้งานอยู่ทันที
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
Get game URL
POST https://{api-domain}/game-service/operator/launch
ใช้สำหรับขอ URL เข้าหน้าล็อบบี้
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
id
string
ไอดี ผู้เล่น รองรับความยาว 30 ตัวอักษร (Lower case)
Yes
display_name
string
ชื่อผู้เล่น รองรับความยาว 50 ตัวอักษร
Yes
language
string
ภาษา 2 หลัก ตามมาตราฐาน ISO 3166-1 alpha-2 (Ex. TH, EN)
Yes
country
string
รหัสประเทศ 2 หลัก ตามมาตราฐาน ISO 3166-1 alpha-2 (Ex. TH, US)
Yes
currency
string
สกุลเงิน 3 หลัก ตามมาตราฐาน ISO 4217 (Ex. THB)
Yes
gender
string
เพศ รองรับค่า: m, f, o
No
birth_date
string
วันเดือนปีเกิด (Ex. 1999-09-30)
No
ip
string
ไอพี
Yes
device
string
อุปกรณ์ที่ผู้เล่นใช้เล่น รองรับค่า: mobile, desktop
Yes
timezone
string
เขตเวลาของผู้เล่น (Ex. Asia/Bangkok)
Yes
Response
Last updated