From 2d7921189da7195db534741a8547d6778bd65b8f Mon Sep 17 00:00:00 2001 From: Zach Orosz Date: Tue, 5 May 2020 21:03:02 -0400 Subject: [PATCH] Add package discogs OAuth 1 Endpoint (#39) --- discogs/discogs.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 discogs/discogs.go diff --git a/discogs/discogs.go b/discogs/discogs.go new file mode 100644 index 0000000..1b0816c --- /dev/null +++ b/discogs/discogs.go @@ -0,0 +1,13 @@ +// Package discogs provides constants for using OAuth1 to access Discogs. +package discogs + +import ( + "github.com/dghubble/oauth1" +) + +// Endpoint is Discogs's OAuth 1.0a endpoint. +var Endpoint = oauth1.Endpoint{ + RequestTokenURL: "https://api.discogs.com/oauth/request_token", + AuthorizeURL: "https://www.discogs.com/oauth/authorize", + AccessTokenURL: "https://api.discogs.com/oauth/access_token", +}