Skip to content

added the missing OAuth requirement#7

Open
Shiro-Nek0 wants to merge 1 commit intomegadrive:masterfrom
Shiro-Nek0:master
Open

added the missing OAuth requirement#7
Shiro-Nek0 wants to merge 1 commit intomegadrive:masterfrom
Shiro-Nek0:master

Conversation

@Shiro-Nek0
Copy link

Fixed the missing OAuth authentication for the twitch api

const { TwitchOnlineTracker } = require('twitchonlinetracker')
const tracker = new TwitchOnlineTracker({
    client_id: "clientid",
    oauth: "oauth",
    track: ['stream'],
    pollInterval: 5,
    debug: true,
    start: true
})

// Listen to live event, it returns StreamData
tracker.on('live', streamData => {
    console.log(`${streamData.user_name} just went live!`)
})

// Make sure you listen for errors
tracker.on('error', error => {
    console.log(error)
})

image

modified:   added missing oauth requirement to README.md
modified:   added missing oauth requirement to src/index.ts
modified:   added missing oauth requirement to src/interfaces.ts
modified:   added missing oauth requirement to src/test/index.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant