From 2897dcade18a126645f1368de827f1e613a60049 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Wed, 23 Mar 2016 13:11:01 -0500 Subject: [PATCH] hipchat: Add HipChat API endpoints The endpoints are documented here: https://developer.atlassian.com/hipchat/guide/hipchat-rest-api/api-access-tokens Change-Id: I4578f5683aa9ed728e503cb3b08ff0bf743a62a1 Reviewed-on: https://go-review.googlesource.com/21051 Reviewed-by: Burcu Dogan --- hipchat/hipchat.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hipchat/hipchat.go diff --git a/hipchat/hipchat.go b/hipchat/hipchat.go new file mode 100644 index 0000000..38de0b2 --- /dev/null +++ b/hipchat/hipchat.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 hipchat provides constants for using OAuth2 to access HipChat. +package hipchat // import "golang.org/x/oauth2/hipchat" + +import ( + "golang.org/x/oauth2" +) + +// Endpoint is HipChat's OAuth 2.0 endpoint. +var Endpoint = oauth2.Endpoint{ + AuthURL: "https://www.hipchat.com/users/authorize", + TokenURL: "https://api.hipchat.com/v2/oauth/token", +}