Documentation ¶
Overview ¶
Package instagram provides interactions with Instagram social account.
Index ¶
- type Client
- func (c *Client) Block(ctx context.Context, user models.User) error
- func (c *Client) Follow(ctx context.Context, user models.User) error
- func (c *Client) Followers(ctx context.Context) ([]models.User, error)
- func (c *Client) Followings(ctx context.Context) ([]models.User, error)
- func (c *Client) GetUserByName(_ context.Context, username string) (models.User, error)
- func (c *Client) IsUseless(ctx context.Context, user models.User, threshold int) (bool, error)
- func (c *Client) Logout(ctx context.Context) error
- func (c *Client) Unblock(ctx context.Context, user models.User) error
- func (c *Client) Unfollow(ctx context.Context, user models.User) error
- func (c *Client) UploadMedia(ctx context.Context, file io.Reader, mt media.Type) error
- func (c *Client) UserFollowers(ctx context.Context, user models.User) ([]models.User, error)
- func (c *Client) UserFollowings(ctx context.Context, user models.User) ([]models.User, error)
- func (c *Client) Username(_ context.Context) string
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents instagram client.
func (*Client) Followings ¶
Followings returns list of followings.
func (*Client) GetUserByName ¶
GetUserByName finds user by username.
func (*Client) UploadMedia ¶ added in v1.12.0
UploadMedia uploads media to the profile.
func (*Client) UserFollowers ¶
UserFollowers returns user followers.
func (*Client) UserFollowings ¶
UserFollowings returns user followings.
Click to show internal directories.
Click to hide internal directories.