การต่อ Pusher เพื่อเก็บข้อมูลการออกผล

เหมาะสำหรับท่านที่ต้องการต่อข้อมูลเพื่อทำบอท หรือเก็บข้อมูลเพื่อวิเคราะห์การออกผล

สำหรับท่านที่ต้องการเขียนโปรแกมเพื่อเก็บข้อมูลการออกผล สามารถทำตามได้ตามขั้นตอน

  1. ทำการติดตั้ง Pusher Client ที่ https://github.com/pusher/pusher-js

  2. เขียน code Client ตามตัวอย่าง

const pusher = new Pusher("3a4a7b0bd61472bd24df", {
  cluster: "ap1",
  pongTimeout: 6000,
  unavailableTimeout: 2000,
  enabledTransports: ["ws"],
});

pusher.channel(`game.${table_id}`).bind("result", (data) => {
  console.log(data)
})

ท่านสามารถนำ console.log(data) ไปทำการเก็บข้อมูลได้ตามที่ท่านต้องการ

API Get ${table_id} ใช้ node "id" : interger

Endpoint: https://wapi.betworld.poker/game-service/game-tables/admin?page=1&per_page=30&status=active
Method: GET
Authentication: Basic Auth
User: ขอจากทีมส่วนกลาง
Pass: ขอจากทีมส่วนกลาง

Last updated