💾 Archived View for godocs.io › golang.org › x › oauth2 › hipchat captured on 2024-02-05 at 10:31:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

➡️ Next capture (2024-03-21)

🚧 View Differences

-=-=-=-=-=-=-

package hipchat - golang.org/x/oauth2/hipchat - godocs.io

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

Package hipchat provides constants for using OAuth2 to access HipChat.

Variables

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.

Functions

func ClientCredentialsConfigFromCaps

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

func ServerEndpoint(host string) oauth2.Endpoint

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

Details

Version: v0.16.0 (latest)

Platform: linux/amd64

Imports: 4 packages

Refresh now

Back to home

Search