-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stackoverflow: add stackoverflow oauth2 endpoints.
Fixes #297 Stackoverflow oauth2 endpoints constant added. Ref: https://api.stackexchange.com/docs/authentication Change-Id: I8285a9baa9514c79e8325c40434f62aa1ed4939b GitHub-Last-Rev: 909997b GitHub-Pull-Request: #298 Reviewed-on: https://go-review.googlesource.com/119995 Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information
1 parent
088f8e1
commit ef14785
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 stackoverflow provides constants for using OAuth2 to access Stack Overflow. | ||
package stackoverflow // import "golang.org/x/oauth2/stackoverflow" | ||
|
||
import ( | ||
"golang.org/x/oauth2" | ||
) | ||
|
||
// Endpoint is Stack Overflow's OAuth 2.0 endpoint. | ||
var Endpoint = oauth2.Endpoint{ | ||
AuthURL: "https://stackoverflow.com/oauth", | ||
TokenURL: "https://stackoverflow.com/oauth/access_token", | ||
} |
😎