PeerPet Api 1.0

PeerDice Api 1.0

Bit777 Api v1.0

Please follow the minimum advised interval between requests, or you might experience some latency!

Peerbet Api v1.0: Chat Documentation

Get chat messages

URL
https://www.peerbet.org/api/chat/?action=get
Minimum interval between requests
1 seconds
Request parameters
  • key (Optional) API key used to authenticate user.
  • mid (Optional) Last message id, otherwise return list of last 50 messages. Format Integer/Int32.
  • last (Optional) Number of last messages. Maximum 300. Format Integer/Int32.
Response
  • status 1 if successful, 0 otherwise.
  • users_online Number of the players online now.
  • message_list An array, containing chat message:
  •    id ID of the chat message.
  •    by Username of the user who posted this message.
  •    to Username of the user who receive this message.
  •    msg Body of the chat message. Up to 250 characters long.
  •    date Date and Time of the message. Format yyyy-MM-dd HH:mm:ss
  •    bot 1/True if a message was posted by bot. Format bit (1/0) > 1=True, 0=False.
  •    my 1/True if a message was posted by current user. Format bit (1/0) > 1=True, 0=False.
  •    me 1/True if this message is private. Format bit (1/0) > 1=True, 0=False.

{"status":1,"users_online":0,
"message_list":
[{"id":1,"by":"System","to":"","msg":"This is a test message","date":"2012-12-12 21:12:21","bot":0,"my":0,"me":0},
{"id":2,"by":"Peerbet","to":"","msg":"This is a test message","date":"2012-12-12 21:21:21","bot":0,"my":1,"me":0},
{"id":3,"by":"System","to":"PeerBet","msg":"Welcome, Peerbet","date":"2012-12-12 21:21:21","bot":1,"my":0,"me":1}]
}

Post chat message

URL
https://www.peerbet.org/api/chat/?action=set
Minimum interval between requests
1 seconds
Request parameters
  • key API key used to authenticate user.
  • msg Chat message to send, encoded according to RFC 3986. Up to 250 character long.
Optional parameters
  • bot True/1 if you are running a bot. Format bit (1/0) > 1=True, 0=False. Default is False/0.
Response
  • status 1 if successful, 0 otherwise.
  • mid ID of the chat message.

{"status":1,"mid":1}