Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIKey = flag.String("twitter-api-key", "", "the api key") APISecretKey = flag.String("twitter-api-secret-key", "", "the api secret key") )
Flags
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the client
func (*Client) UserTimeline ¶
func (c *Client) UserTimeline(o UserTimelineOptions) (is []UserTimelineItem, err error)
type Configuration ¶
type Configuration struct {
APIKey string `toml:"api_key"`
APISecretKey string `toml:"api_secret_key"`
Sender astikit.HTTPSenderOptions
}
Configuration represents the lib's configuration
func FlagConfig ¶
func FlagConfig() Configuration
FlagConfig generates a Configuration based on flags
type UserTimelineEntities ¶
type UserTimelineEntities struct {
URLs []UserTimelineURL `json:"urls"`
}
type UserTimelineItem ¶
type UserTimelineItem struct {
CreatedAt UserTimelineTime `json:"created_at"`
Entities UserTimelineEntities `json:"entities"`
ID int `json:"id"`
Text string `json:"text"`
}
type UserTimelineOptions ¶
type UserTimelineTime ¶
func (*UserTimelineTime) UnmarshalText ¶
func (t *UserTimelineTime) UnmarshalText(b []byte) error
type UserTimelineURL ¶
Click to show internal directories.
Click to hide internal directories.