November 13, 2023 (1y ago)
GitHub | npm
version: 1.0.7
Twitcher gives you easy and convenient access to the Twitch API.
Installing
or
Setup
Step 1:
Get your app information from https://dev.twitch.tv/console
If you don't have an app, create one
Step 2:
Copy your application's CLIENT_ID and CLIENT_SECRET information
Paste the information you obtained
Then run the application to get your Token information
Send the TOKEN you received to the client
And you're ready!
Functions
getToken()
Returns your token information
getClip(clipURL)
Parameters
Response
Example Usage
Example Response
getGameByName(game_name)
Parameters
- game_name(string): Twitch game name
Response
Example Usage
Example Response
getGameById(game_id)
Parameters
- game_id(Number): Twitch game id
Response
Example Usage
Example Response
searchChannel(query)
Parameters
- query: Twitch channel name
- type: String
Response
Example Usage
Example Response
searchUserByName(query)
Parameters
- query: Twitch channel/user name
- type: String
Response
Example Usage
Example Response
searchUserByUserId(query)
Parameters
- query: Twitch channel/user id
- type: String
Response
Example Usage
Example Response