diff --git a/README.md b/README.md index 01b35b5dc..c45df1cfb 100644 --- a/README.md +++ b/README.md @@ -162,8 +162,8 @@ const client = generator('mastodon', BASE_URL) client.registerApp('Test App') .then(appData => { - clientId = appData.clientId - clientSecret = appData.clientSecret + clientId = appData.client_id + clientSecret = appData.client_secret console.log('Authorization URL is generated.') console.log(appData.url) }) @@ -177,11 +177,11 @@ After that, get an access token. ```typescript const code = '...' // Authorization code -client.fetchAccessToken(clientId, clientSecret, code) +client.fetchAccessToken(client_id, client_secret, code) }) .then((tokenData: OAuth.TokenData) => { - console.log(tokenData.accessToken) - console.log(tokenData.refreshToken) + console.log(tokenData.access_token) + console.log(tokenData.refresh_token) }) .catch((err: Error) => console.error(err)) ```