sharecode

csgo.sharecode.decode(code)

Decodes a match share code

Parameters:code (str) – match share code (e.g. CSGO-Ab1cD-xYz23-7bcD9-uVZ23-12aBc)
Raises:ValueError
Returns:dict with matchid, outcomeid and token
Return type:dict
{'matchid': 0,
 'outcomeid': 0,
 'token': 0
 }
csgo.sharecode.encode(matchid, outcomeid, token)

Encodes (matchid, outcomeid, token) to match share code

Parameters:
  • matchid (int) – match id
  • outcomeid (int) – outcome id
  • token (int) – token
Returns:

match share code (e.g. CSGO-Ab1cD-xYz23-7bcD9-uVZ23-12aBc)

Return type:

str