/
v3.0.11Get access

getShareBetForCommunity

The command is an action-oriented request designed to bridge a user’s private betting history with public or social platforms

Request parameters:

NameDescriptionTypeValuesDefaultSource
betId
The unique reference for the specific bet to be shared. getBetHistory response will include a betIdstring--
Key from responseid
This method is usually used with these methods:

Call example:

getShareBetForCommunity({
  alg: 'HS256',
  betId: 215615115,
  tokenType: 'JWT'
})

Response examples:

{
  code: 0,
  rid: 'rid-32',
  data: {
    result: 0,
    result_text: '',
    details: {
      bet_jwe: 'eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJIUzI1NiJ9.eyJpZCI6IDQ1ODQ1NTY1Nz...'
    }
  }
}

Response parameters:

NameDescriptionTypeValues
bet_jwe
This is the JSON Web Encryption (JWE) token. It is a secure, encrypted representation of the bet datastring-