Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $client_id = 'XXX'; // Aus PHP-Script vom Bot entnehmen
- $client_secret = 'XXX'; // Aus KeePass entnehmen
- $post = [
- 'client_id' => $client_id,
- 'client_secret' => $client_secret,
- 'grant_type' => 'client_credentials',
- ];
- $ch = curl_init('https://id.twitch.tv/oauth2/token');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- $response = curl_exec($ch);
- curl_close($ch);
- echo $response;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement