diff options
author | Prasanna Swaminathan <prasanna@mediamath.com> | 2016-07-25 16:29:55 -0400 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-08-17 16:31:01 +0000 |
commit | 3b966c7f301c0c71c53d94dc632a62df0a682cd7 (patch) | |
tree | 5fa6fee6ca30d634c5fd796f0a8f797155d3fef7 | |
parent | 4784bb855e56a530f1ce5d788959359ed6cb4a16 (diff) | |
download | golang-x-oauth2-3b966c7f301c0c71c53d94dc632a62df0a682cd7.tar.gz |
mediamath: add MediaMath endpoints
Change-Id: I8646fa393bcc3475dbab85a83561154818de95ce
Reviewed-on: https://go-review.googlesource.com/27233
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | mediamath/mediamath.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mediamath/mediamath.go b/mediamath/mediamath.go new file mode 100644 index 0000000..3ebce5d --- /dev/null +++ b/mediamath/mediamath.go @@ -0,0 +1,22 @@ +// Copyright 2016 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 mediamath provides constants for using OAuth2 to access MediaMath. +package mediamath // import "golang.org/x/oauth2/mediamath" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is MediaMath's OAuth 2.0 endpoint for production. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://api.mediamath.com/oauth2/v1.0/authorize", + TokenURL: "https://api.mediamath.com/oauth2/v1.0/token", +} + +// SandboxEndpoint is MediaMath's OAuth 2.0 endpoint for sandbox. +var SandboxEndpoint = oauth2.Endpoint{ + AuthURL: "https://t1sandbox.mediamath.com/oauth2/v1.0/authorize", + TokenURL: "https://t1sandbox.mediamath.com/oauth2/v1.0/token", +} |