Skip to content

Commit 3ea2187

Browse files
while-loopbradfitz
authored andcommitted
twitch: add twitch OAuth2 endpoint
Twitch Auth API documentation: https://dev.twitch.tv/docs/authentication Change-Id: I1a517609c229c8893d2dbf91f8821db386f822ab Reviewed-on: https://go-review.googlesource.com/83136 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 6a2004c commit 3ea2187

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

twitch/twitch.go

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2017 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// Package twitch provides constants for using OAuth2 to access Twitch.
6+
package twitch // import "golang.org/x/oauth2/twitch"
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is Twitch's OAuth 2.0 endpoint.
13+
//
14+
// For more information see:
15+
// https://dev.twitch.tv/docs/authentication
16+
var Endpoint = oauth2.Endpoint{
17+
AuthURL: "https://api.twitch.tv/kraken/oauth2/authorize",
18+
TokenURL: "https://api.twitch.tv/kraken/oauth2/token",
19+
}

0 commit comments

Comments
 (0)