Closed gg closed 13 years ago
To broadcast a message, the server sends a PacketPokerMessage packet to the client. The client then displays the message in a jpoker.dialog() window.
POST /broadcast
{"message": "Hello, players"}
python apiclient.py -k '<API_KEY>' -s '<SECRET>' -b '{"message": "Hello, players"}' https://localhost:8880/broadcast
POST /broadcast/player/:serial
message
{"message": "Hello, player"}
python apiclient.py -k '<API_KEY>' -s '<SECRET>' -b '{"message": "Hello, player"}' https://localhost:8880/broadcast/player/2
Overview
To broadcast a message, the server sends a PacketPokerMessage packet to the client. The client then displays the message in a jpoker.dialog() window.
API resources that were added
Broadcast a message to all players
Parameters:
Example request body:
Example request with apiclient:
Broadcast a message to a specific player
Parameters
message
- string requiredExample request body:
Example request with apiclient:
Other notable changes: