Created
January 11, 2021 13:39
-
-
Save vaibhavsethia/ee60a6797f5ddcd83150f6ec7e52a6cd to your computer and use it in GitHub Desktop.
Twitch API for medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
let TwitchAPI = axios.create({ | |
headers: { | |
'Client-ID': '<Your Client ID>', | |
'Authorization': 'Bearer <Your Access token>', | |
'Access-Control-Allow-Origin': '*', | |
'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE,PATCH,OPTIONS' | |
} | |
}) | |
export default TwitchAPI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment