twitter

package
v1.42.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel mech.LogLevel

Functions

This section is empty.

Types

type Activate

type Activate struct {
	Guest_Token string
}

func NewActivate

func NewActivate() (*Activate, error)

func (Activate) Status

func (a Activate) Status(id uint64) (*Status, error)

type Status

type Status struct {
	Extended_Entities struct {
		Media []struct {
			Video_Info struct {
				Variants []struct {
					Content_Type string
					URL          URL
				}
			}
		}
	}
	User struct {
		Name string
	}
}

type URL

type URL string

func (URL) String

func (u URL) String() string

Jump to

Keyboard shortcuts

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