twitter

package
v1.46.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: OSL-3.0 Imports: 5 Imported by: 0

README

Twitter

How to get Bearer Token?

Visit this page:

https://twitter.com

and you should see a request like this:

GET /i/api/1.1/hashflags.json HTTP/1.1
Host: twitter.com
x-guest-token: 1471285364216246275
authorization: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs=1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA

Why does this exist?

January 20 2022:

https://github.com/89z/mech/issues/12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Guest added in v1.42.5

type Guest struct {
	Guest_Token string
}

func NewGuest added in v1.42.5

func NewGuest() (*Guest, error)

type Status

type Status struct {
	Extended_Entities struct {
		Media []struct {
			Media_URL  string
			Video_Info struct {
				Variants []Variant
			}
		}
	}
	User struct {
		Name string
	}
}

func NewStatus added in v1.42.5

func NewStatus(guest *Guest, id int64) (*Status, error)

func (Status) Variants added in v1.42.4

func (s Status) Variants() []Variant

type Stream added in v1.42.5

type Stream struct {
	Source struct {
		Location string
	}
}

type URL

type URL string

func (URL) String

func (u URL) String() string

type Variant added in v1.42.4

type Variant struct {
	Content_Type string
	URL          URL
}

Jump to

Keyboard shortcuts

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