twitter

package
v0.0.0-...-9b95192 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookieToMap

func CookieToMap(cookie *http.Cookie) (map[string]any, error)

Convert http.Cookie to a map for JSON serialization

func MapToCookie

func MapToCookie(data map[string]any) (*http.Cookie, error)

MapToCookie populates an http.Cookie struct from a map

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(user, password, email string) (*Provider, error)

func (*Provider) Check

func (*Provider) Check(u string) bool

func (*Provider) GetConfig

func (x *Provider) GetConfig() string

func (*Provider) GetPost

func (x *Provider) GetPost(ctx context.Context, id string) (*garoo.Post, error)

func (*Provider) Init

func (x *Provider) Init(conf string) (err error)

func (*Provider) Login

func (x *Provider) Login(code string) (string, error)

func (*Provider) Name

func (x *Provider) Name() string

Jump to

Keyboard shortcuts

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