twitter

package
v0.0.0-...-44941fa Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookie struct {
	Name       string        `json:"name"`
	Value      string        `json:"value"`
	Path       string        `json:"path,omitempty"`       // optional
	Domain     string        `json:"domain,omitempty"`     // optional
	Expires    time.Time     `json:"expires,omitempty"`    // optional
	RawExpires string        `json:"rawExpires,omitempty"` // for reading cookies only
	MaxAge     int           `json:"maxAge"`
	Secure     bool          `json:"secure,omitempty"`
	HttpOnly   bool          `json:"httpOnly,omitempty"`
	SameSite   http.SameSite `json:"sameSite"`
	Raw        string        `json:"raw,omitempty"`
	Unparsed   []string      `json:"unparsed,omitempty"` // Raw text of unparsed attribute-value pairs
}

func NewCookie

func NewCookie(c *http.Cookie) *Cookie

func (*Cookie) ToHTTPCookie

func (c *Cookie) ToHTTPCookie() *http.Cookie

type Provider

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

func New

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

func (*Provider) ExtractPostID

func (*Provider) ExtractPostID(u *url.URL) string

func (*Provider) GetConfig

func (x *Provider) GetConfig() string

func (*Provider) GetPost

func (x *Provider) GetPost(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