⚙️Integrity

The cost for each request in this task is 0.003 cents.

Parameters

Parameter
Type
Required

access_token

String

Yes

device_id

String

No

client_id

String

No

Creating a Task

Send a POST request to create a new Twitch Integrity solving task using the createTask method.

Request

POST https://salamoonder.com/api/createTask
Host: salamoonder.com
Content-Type: application/json

{
  "api_key": "YOUR_API_KEY",
  "task": {
    "type": "Twitch_PublicIntegrity",
    "access_token": "your_twitch_account_oauth",
    "device_id": "optional_device_id",
    "client_id": "optional_client_id"
  }
}

Response

Response Fields:

  • taskId - Unique identifier for this task. Use this to retrieve results.

Getting Results

Retrieve the solution using the getTaskResult method.

Request

Response

Response Fields:

  • device-id - Device identifier used for this task

  • integrity-token - Ready-to-use Twitch integrity token for authentication

  • expiration - Whenever the token will expire.

  • user-agent - User-agent that was used to generate the token

  • client-id - Client ID used for this request

Quick Start Example

Here's a proof-of-concept Python example to get you started:

This example can be adapted to any programming language.

Last updated

Was this helpful?