From a5fd4473325460cc49d9515bece2fb2f4bdf8585 Mon Sep 17 00:00:00 2001 From: Cixtor Date: Sun, 9 Jun 2019 16:20:15 -0800 Subject: [PATCH] douyu: Add new endpoint of Douyu --- douyu/douyu.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 douyu/douyu.go diff --git a/douyu/douyu.go b/douyu/douyu.go new file mode 100644 index 000000000..409710f05 --- /dev/null +++ b/douyu/douyu.go @@ -0,0 +1,16 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package douyu provides constants for using OAuth2 to access Kakao. +package douyu // import "golang.org/x/oauth2/douyu" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Douyu's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://passport.douyu.com/auth/oauth2/authorize", + TokenURL: "https://passport.douyu.com/auth/oauth2/access_token", +}