twitter

package
v0.0.0-...-b0f4c4c Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxStatusesPerRequest = 100
View Source
const Oauth2TokenUrl = "https://api.twitter.com/oauth2/token"

Variables

This section is empty.

Functions

func MaxId

func MaxId(metadata *Metadata) (string, error)

func Oauth2Token

func Oauth2Token(key string, secret string) (*oauth2.Token, error)

func SinceId

func SinceId(metadata *Metadata) (string, error)

Types

type Client

type Client interface {
	Search(*Params) (*Result, *Response, error)
}

func New

func New(httpClient *http.Client) Client

NewClient creates a new Client using the provided httpClient

type Metadata

type Metadata = twitter.SearchMetadata

type Params

func (*Params) FromProto

func (p *Params) FromProto(parameter *api.Parameter) *Params

func (*Params) ToProto

func (p *Params) ToProto() *api.Parameter

type Response

type Response = types.Response

type Result

type Result = twitter.Search

type Tweet

type Tweet = twitter.Tweet

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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