Documentation ¶
Index ¶
- Variables
- type API
- type Client
- func (c *Client) CurrentUser(ctx context.Context, accessToken, accessSecret string) (*User, error)
- func (c *Client) FollowerIDs(ctx context.Context, accessToken, accessSecret string) ([]int64, error)
- func (c *Client) UserByID(ctx context.Context, accessToken, accessSecret string, userID int64) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CurrentUser ¶
type User ¶
type User struct { ID string `json:"id"` Handle string `json:"handle,omitempty"` Name string `json:"name,omitempty"` Location string `json:"location,omitempty"` Bio string `json:"bio,omitempty"` ProfileImageURL string `json:"profileImageUrl,omitempty"` Protected bool `json:"protected"` TotalFollowers int `json:"totalFollowers"` }
Click to show internal directories.
Click to hide internal directories.