Documentation ¶
Index ¶
- func NewClient() (*http.Client, error)
- type APIError
- type APIErrors
- type IdsResult
- type MembersResult
- type NucollTransport
- type SearchResult
- type TweetObject
- type Twitter
- func (ns Twitter) Edgelist(egoFlag bool, missingFlag bool, args []string)
- func (ns Twitter) Fetch(forceFlag bool, fetchCount int, args []string)
- func (ns Twitter) Init(followersFlag bool, maxPostCount int, queryFlag bool, nomentionFlag bool, ...)
- func (ns Twitter) Posts(queryFlag bool, list string, postID uint64, args []string)
- func (ns Twitter) Resolve(args []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIErrors ¶
type APIErrors struct {
Errors []APIError `json:"errors"`
}
APIErrors holds a collection of errors
type MembersResult ¶
type MembersResult struct { Users []types.UserObject NextCursor uint64 `json:"next_cursor"` }
MembersResult for members REST call
type NucollTransport ¶
type NucollTransport struct { Config *util.NucollConfig Transport http.RoundTripper }
NucollTransport holds the config and the structure to deal with throttling
type SearchResult ¶
type SearchResult struct {
Statuses []TweetObject
}
SearchResult for search REST call
type TweetObject ¶
type TweetObject struct { CreatedAt string `json:"created_at"` ID uint64 `json:"id"` User struct { ScreenName string `json:"screen_name"` } `json:"user"` Text string `json:"text"` InReplyToTweet uint64 `json:"in_reply_to_status_id"` InReplyToUser uint64 `json:"in_reply_to_user_id"` InReplyToScreenName string `json:"in_reply_to_screen_name"` //QuoteCount int `json:"quote_count"` //ReplyCount int `json:"reply_count"` RetweetCount int `json:"retweet_count"` FavoriteCount int `json:"favorite_count"` }
TweetObject defines attributes retrieved by client for a given post
type Twitter ¶
Twitter client with custom RoundTripper to handle throttling
func (Twitter) Edgelist ¶
Edgelist constructs the network of who is "friends" with whom among handles returned by Init
func (Twitter) Init ¶
func (ns Twitter) Init(followersFlag bool, maxPostCount int, queryFlag bool, nomentionFlag bool, membership string, imageFlag bool, args []string)
Init supports retrieving from: list membership, a query file, followers who retweet or a friend/follow relationship
Click to show internal directories.
Click to hide internal directories.