From fc007136dbebb12b12c1e73434efa0c5ffbea53c Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 11 Sep 2018 18:15:54 +0800 Subject: [PATCH] udpate --- module/apis/twitch/twitch.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/apis/twitch/twitch.go b/module/apis/twitch/twitch.go index df19d58..f46ca95 100644 --- a/module/apis/twitch/twitch.go +++ b/module/apis/twitch/twitch.go @@ -26,3 +26,10 @@ func getHeaders(token string) map[string]string { m["Authorization"] = fmt.Sprintf("Bearer %s", token) return m } + +func GetUserData(token string) { + url, ok := getURL("/helix/users") + if !ok { + return + } +}