Skip to content

Commit

Permalink
add comment for func
Browse files Browse the repository at this point in the history
  • Loading branch information
kkdai committed Oct 30, 2022
1 parent a82eef3 commit 0a90d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (c *Client) QueryMentionsTimeline(count int) (TimelineTweets, []byte, error
return ret, data, err
}

// Query timeline by count
func (c *Client) QueryTimeLine(count int) (MentionsTimeline, []byte, error) {
requesURL := fmt.Sprintf("%s?count=%d", API_TIMELINE, count)
data, err := c.BasicQuery(requesURL)
Expand All @@ -83,6 +84,7 @@ func (c *Client) QueryTimeLine(count int) (MentionsTimeline, []byte, error) {
return ret, data, err
}

// Query follower timeline by count
func (c *Client) QueryFollower(count int) (Followers, []byte, error) {
requesURL := fmt.Sprintf("%s?count=%d", API_FOLLOWERS_LIST, count)
data, err := c.BasicQuery(requesURL)
Expand All @@ -91,6 +93,7 @@ func (c *Client) QueryFollower(count int) (Followers, []byte, error) {
return ret, data, err
}

// Query FollowerID by count
func (c *Client) QueryFollowerIDs(count int) (FollowerIDs, []byte, error) {
requesURL := fmt.Sprintf("%s?count=%d", API_FOLLOWERS_IDS, count)
data, err := c.BasicQuery(requesURL)
Expand All @@ -99,6 +102,7 @@ func (c *Client) QueryFollowerIDs(count int) (FollowerIDs, []byte, error) {
return ret, data, err
}

// Query FollowerID by ID.
func (c *Client) QueryFollowerById(id int) (UserDetail, []byte, error) {
requesURL := fmt.Sprintf("%s?user_id=%d", API_FOLLOWER_INFO, id)
data, err := c.BasicQuery(requesURL)
Expand Down

0 comments on commit 0a90d43

Please sign in to comment.