From 4784bb855e56a530f1ce5d788959359ed6cb4a16 Mon Sep 17 00:00:00 2001 From: Matthieu Hauglustaine Date: Wed, 10 Aug 2016 10:59:49 +0200 Subject: [PATCH] uber: Add Uber API endpoints The endpoints are documented here: https://developer.uber.com/docs/rides/authentication#oauth-20 Change-Id: I5fc0fff1f48393938548bc5071bc35f32d259a7a Reviewed-on: https://go-review.googlesource.com/26690 Reviewed-by: Brad Fitzpatrick --- uber/uber.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 uber/uber.go diff --git a/uber/uber.go b/uber/uber.go new file mode 100644 index 0000000..5520a64 --- /dev/null +++ b/uber/uber.go @@ -0,0 +1,16 @@ +// 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 uber provides constants for using OAuth2 to access Uber. +package uber // import "golang.org/x/oauth2/uber" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is Uber's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://login.uber.com/oauth/v2/authorize", + TokenURL: "https://login.uber.com/oauth/v2/token", +}