oauth2: golang.org/x/oauth2/hipchat Index | Files

package hipchat

import "golang.org/x/oauth2/hipchat"

Package hipchat provides constants for using OAuth2 to access HipChat.


Package Files



var Endpoint = oauth2.Endpoint{
    AuthURL:  "https://www.hipchat.com/users/authorize",
    TokenURL: "https://api.hipchat.com/v2/oauth/token",

Endpoint is HipChat's OAuth 2.0 endpoint.

func ClientCredentialsConfigFromCaps Uses

func ClientCredentialsConfigFromCaps(capsJSON []byte, clientID, clientSecret string, scopes ...string) (*clientcredentials.Config, error)

ClientCredentialsConfigFromCaps generates a Config from a HipChat API capabilities descriptor. It does not verify the scopes against the capabilities document at this time.

For more information see: https://www.hipchat.com/docs/apiv2/method/get_capabilities

func ServerEndpoint Uses

func ServerEndpoint(host string) oauth2.Endpoint

ServerEndpoint returns a new oauth2.Endpoint for a HipChat Server instance running on the given domain or host.

Package hipchat imports 4 packages (graph) and is imported by 4 packages. Updated 2019-06-12. Refresh now. Tools for package owners.