![]() ![]() NOTE An ID token or identity token encodes the user’s identity in a JSON Web Token (JWT). The following table summarizes the flows you can use and the type of access token it returns. For details, see Getting an app access token using the client credentials grant flow. To get an app access token, use the client credentials grant flow. If you call the EventSub APIs and use webhooks, you must also get an app access token because the calls fail if you try to use a user access token. The exception is if you call the EventSub APIs (for example, Create EventSub Subscription). But if your app also calls APIs that require a user access token, you should just get a user access token because in most cases you can use the user access token to call APIs that accept app access tokens. You should get an app access token, if your app only calls APIs that don’t require the user’s permission to access the resource. For example, you can get a list of videos without the user’s permission. For details about getting a user access token using this flow, see Getting a user access token using the authorization code grant flow.ĪPIs that don’t require the user’s permission to access resources use app access tokens. Use this flow if your app uses a server, can securely store a client secret, and can make server-to-server requests to the Twitch API. ![]() For details about getting a user access token using this flow, see Getting a user access token using the implicit grant flow. For example, use this flow if your app is a client-side JavaScript app or mobile app. Use this flow if your app does not use a server. If the user clicks Authorize, Twitch gives your app an access token that lets it perform those actions.īased on the type of app you’re building, you’ll use one of the following OAuth flows to get a user access token. The following example shows the dialog that Twitch displays to the user to get their permission for your app to create a Poll, stop a Poll, or get a list of their Polls. For example, you don’t need permission to get a user’s User resource but you do need their permission to include their email address with the resource. Twitch uses scopes to identify the resources, or the fields within a resource, that your app needs permission to access. User access tokensĪPIs that require the user’s permission to access resources use user access tokens. IMPORTANT Treat access tokens, refresh tokens, and client secrets like a password and safeguard them. Some APIs require a user access token, others require a user access token or an app access token, and a few like the EventSub APIs require app access tokens. The reference content for each API identifies the type of access token you must use to access its resource. The Twitch APIs use two types of access tokens: user access tokens and app access tokens. If you’re not already familiar with the specification, reading it may help you better understand how to get access tokens to use with the Twitch API. Please note: This app features Nielsen’s proprietary measurement software which contributes to market research, like Nielsen’s TV Ratings.Twitch APIs use OAuth 2.0 access tokens to access resources. Twitch's Terms of Service are available at įor feedback and assistance, please visit our Support Center: Black and purple have never looked this good together. Yes, really.ĭark mode: Y’all love this one. You never know what you’ll find: Popular games are always live, but so are music festivals, rocket launches, street tours of Tokyo, and goat yoga. Just create an account, go live directly from the app, and bring people together around whatever you’re passionate about. Start your own channel: The Twitch app is one of the easiest ways to start streaming. Plus, unlock exclusive perks for your support. Give support, get support: Find new streamers and subscribe to your favorites. We actually are one: Whatever you nerd out about, you can find your people on Twitch. Here’s a convenient list of other awesome things about Twitch:Įveryone is “about” community. Download Twitch and join millions enjoying live games, music, sports, esports, podcasts, cooking shows, IRL streams, and whatever else crosses our community’s wonderfully absurd minds. Twitch is where thousands of communities come together for our favorite streamers, for the games we love, for the lulz, for each other, for whatever. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |