RegisterIPP
Register Instant PlayPass endpoint documentation
Endpoint: /instantPlayPass/register
Method: POST
{
tokens: string[]; // Array of tokens (e.g. ['plyr', 'gamr'])
sync?: boolean; // Optional sync flag
}
Example Usage
const timestamp = Date.now().toString();
const body = {
tokens: ['plyr', 'gamr'], // Tokens to include in the PlayPass
sync: true // Optional: synchronize tokens
};
const hmac = generateHmacSignature(timestamp, body, secretKey);
const response = await axios.post(apiEndpoint + '/instantPlayPass/register', body, {
headers: {
apikey: apiKey,
signature: hmac,
timestamp: timestamp
}
});
// Use the session JWT from the response
const sessionJwt = response.data.sessionJwt;
// You can now proceed with revealing the claiming code using the sessionJwt
Last updated