Skip to content

Commit 3b966c7

Browse files
Prasanna Swaminathanbradfitz
Prasanna Swaminathan
authored andcommitted
mediamath: add MediaMath endpoints
Change-Id: I8646fa393bcc3475dbab85a83561154818de95ce Reviewed-on: https://go-review.googlesource.com/27233 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 4784bb8 commit 3b966c7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

mediamath/mediamath.go

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2016 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// Package mediamath provides constants for using OAuth2 to access MediaMath.
6+
package mediamath // import "golang.org/x/oauth2/mediamath"
7+
8+
import (
9+
"golang.org/x/oauth2"
10+
)
11+
12+
// Endpoint is MediaMath's OAuth 2.0 endpoint for production.
13+
var Endpoint = oauth2.Endpoint{
14+
AuthURL: "https://api.mediamath.com/oauth2/v1.0/authorize",
15+
TokenURL: "https://api.mediamath.com/oauth2/v1.0/token",
16+
}
17+
18+
// SandboxEndpoint is MediaMath's OAuth 2.0 endpoint for sandbox.
19+
var SandboxEndpoint = oauth2.Endpoint{
20+
AuthURL: "https://t1sandbox.mediamath.com/oauth2/v1.0/authorize",
21+
TokenURL: "https://t1sandbox.mediamath.com/oauth2/v1.0/token",
22+
}

0 commit comments

Comments
 (0)