twitter

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 1 Imported by: 98

Documentation

Overview

Package twitter provides constants for using OAuth1 to access Twitter.

Index

Constants

This section is empty.

Variables

View Source
var AuthenticateEndpoint = oauth1.Endpoint{
	RequestTokenURL: "https://api.twitter.com/oauth/request_token",
	AuthorizeURL:    "https://api.twitter.com/oauth/authenticate",
	AccessTokenURL:  "https://api.twitter.com/oauth/access_token",
}

AuthenticateEndpoint is Twitter's OAuth 1 endpoint which uses the oauth/authenticate AuthorizeURL redirect. Logged in users who have granted access are immediately authenticated and redirected to the callback URL.

View Source
var AuthorizeEndpoint = oauth1.Endpoint{
	RequestTokenURL: "https://api.twitter.com/oauth/request_token",
	AuthorizeURL:    "https://api.twitter.com/oauth/authorize",
	AccessTokenURL:  "https://api.twitter.com/oauth/access_token",
}

AuthorizeEndpoint is Twitter's OAuth 1 endpoint which uses the oauth/authorize AuthorizeURL redirect. Note that this requires users who have granted access previously, to re-grant access at AuthorizeURL. Prefer AuthenticateEndpoint over AuthorizeEndpoint if you are unsure.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL