From 9ea810c4a5ba2bfec1f3d80a8b7e542df29cfe2f Mon Sep 17 00:00:00 2001 From: alexbcberio Date: Thu, 6 Jan 2022 14:26:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tokens.json file format has changed --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9cb605a..d05cb16 100644 --- a/README.md +++ b/README.md @@ -56,19 +56,19 @@ POST https://id.twitch.tv/oauth2/token This will return a JSON-encoded response. Copy the whole response into a file called `tokens.json` and place it on the root of this project (same place as -is this file). +is this file). You have to change the key names from kebab_case to camelCase. -The JSON has this format: +The JSON file must have this format (the order is not relevant): ```json { - "access_token": "the access token", - "expires_in": 14361, - "refresh_token": "the refresh token", + "accessToken": "the access token", + "expiresIn": 14361, + "refreshToken": "the refresh token", "scope": [ // list of the scopes ], - "token_type": "bearer" + "tokenType": "bearer" } ```