Because this is the first time you’re running the token command in this instance of the CLI, the CLI will prompt you for the client ID and secret you created in Step 1. To get an access token, enter twitch token at the command prompt. If you have trouble installing or running the CLI, get help by posting a note in the #cli-help channel of the TwitchDev Discord server. Use "twitch -help" for more information about a command. config string config file (default is $HOME/.twitch-cli/.twitch-cli.env ) -h, -help help for twitch Version Returns the current version of the CLI. Token Logs into Twitch and returns an access token according to your client id/secret in the configuration. Mock-api Used to interface with the mock Twitch API.
#Twitch tracker install#
For example, use the following Homebrew command to install the CLI on MacOS or Linux.Ī simple CLI tool for the New Twitch API and Webhook products.Īpi Used to interface with the Twitch APIĬonfigure Configures your Twitch CLI with your Client ID and SecretĮvent Used to interface with Event services, such as Eventsub and Websub.
#Twitch tracker download#
To install the Twitch CLI, go to the Twitch CLI repository and follow the Download instructions in README.md. This example uses the Twitch CLI to generate an OAuth access token that’s required to access Twitch resources. Step 2: Authentication using the Twitch CLI Click New Secret to generate a secret to use in Step 2.Back in the Applications tab, locate your app under Developer Applications, and click Manage.For this example, it doesn’t matter which category you select. Select the Category of application that your app belongs to.Set OAuth Redirect URLs to the callback URL that your app uses for authorizations.The name doesn’t matter for this exercise but it must be unique within all Twitch applications. Select the Applications tab and then click Register Your Application.You’ll need to restart your console for these changes to take affect.To enable 2FA, open your profile and navigate to Settings, Security and Privacy, and follow the steps for enabling 2FA. You must also enable two-factor authentication (2FA) for your account.Be sure to open the email and verify your account before proceeding. When you sign up for an account, Twitch sends you an email to verify your account.If you don’t have an account, select the Sign Up tab to create one. Log in to the developer console using your Twitch account.The first step is to register your app with Twitch. To see how easy it is to integrate with the API, let’s use the Twitch CLI (command line interface) to get information about the TwitchDev user. The Twitch API is a RESTful API that lets developers build creative integrations for the broader Twitch community.