Cable

Get a short-lived pass for the live score cable

Browsers cannot set headers on a WebSocket, so they connect to /cable with this pass in the URL (?cable_token=…) instead of the session token. The pass lasts one hour and only works on the cable; fetch a new one before connecting once it has expired.

post/v1/auth/cable_token

Request

  • Base URL
    https://api.hify.club
  • Auth
    API key in header X-User-Token

Response

Pass issued

cable_tokenstring
expires_ininteger

Seconds until the pass stops working

Example response

{
  "expires_in": 3600
}

Changes

No recorded changes to this operation across all 2 revisions of this API.