diff --git a/README.md b/README.md index cf31d47..3b3c1d5 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ An API exists on TwitchTokenGenerator allowing the creation of tokens and implem - Create Endpoint: `https://twitchtokengenerator.com/api/create` - Required Rarameters: - -- base64 encoded application title + - - base64 encoded application title - -- scope list with + delimiter + - - scope list with + delimiter - Example create: `https://twitchtokengenerator.com/api/create/QXV0aEZsb3dFeGFtcGxlIFRlc3QgQXBwbGljYXRpb24=/chat_login+user_read` 2. Response will be a json object including success bool, an id, and a message string containing the auth url. Present the URL to the program user. @@ -25,12 +25,15 @@ An API exists on TwitchTokenGenerator allowing the creation of tokens and implem - Status endpoint: `https://twitchtokengenerator.com/api/status` - Required Parameters: - -- Id of auth flow - + - - Id of auth flow + - Example status: `https://twitchtokengenerator.com/api/status/rtotgzqct6ro6nwlwr04` + - Please record your access token as well as the refresh token for usage. +4. Occasionally you will find that your Twitch access token has expired. This is new as of Twitch's oAuth2 implementation. To refresh, use the "refresh" token that you received in step 3 and hit the /api/refresh/ endpoint to get a new token. + - Example refresh: `https://twitchtokengenerator.com/api/refresh/{refresh_token}` ### Credits - Xxplosions' twitchtv-oauth: [Xxplosions/twitchtv-oauth](https://github.com/Xxplosions/twitchtv-oauth) - MobileDetect: [http://mobiledetect.net/](http://mobiledetect.net/) ### License -MIT License. © 2017 Cole \ No newline at end of file +MIT License. © 2017 Cole