Documentation ¶
Index ¶
- Variables
- func GenerateSignedForm(form ghttp.Form) ghttp.Form
- func GenerateUUID() string
- type Bot
- func (bot *Bot) ArchiveMedia(ctx context.Context, mediaId string, undo bool) (ghttp.H, error)
- func (bot *Bot) BlockUser(ctx context.Context, userId string, undo bool) (ghttp.H, error)
- func (bot *Bot) ConfigureMedia(ctx context.Context, uploadId string, caption string, disableComments bool) (ghttp.H, error)
- func (bot *Bot) ConfigureSidecarMedia(ctx context.Context, uploadIds []string, caption string, disableComments bool) (ghttp.H, error)
- func (bot *Bot) CreateCollection(ctx context.Context, name string) (ghttp.H, error)
- func (bot *Bot) DeleteCollection(ctx context.Context, collectionId string) (ghttp.H, error)
- func (bot *Bot) DeleteMedia(ctx context.Context, mediaId string) (ghttp.H, error)
- func (bot *Bot) DeleteMediaComments(ctx context.Context, mediaId string, commentIds ...string) (ghttp.H, error)
- func (bot *Bot) DisableMediaComments(ctx context.Context, mediaId string, undo bool) (ghttp.H, error)
- func (bot *Bot) EditCollection(ctx context.Context, collectionId string, name string) (ghttp.H, error)
- func (bot *Bot) EditMedia(ctx context.Context, mediaId string, captionText string) (ghttp.H, error)
- func (bot *Bot) Explore(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) ExploreCluster(ctx context.Context, clusterId string, maxId string) (ghttp.H, error)
- func (bot *Bot) FollowTag(ctx context.Context, name string, undo bool) (ghttp.H, error)
- func (bot *Bot) FollowUser(ctx context.Context, userId string, undo bool) (ghttp.H, error)
- func (bot *Bot) GetCSRFToken() string
- func (bot *Bot) GetCollections(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) GetDeviceId() string
- func (bot *Bot) GetMe(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) GetMediaComments(ctx context.Context, mediaId string) (ghttp.H, error)
- func (bot *Bot) GetRecentSearches(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) GetSelfFeed(ctx context.Context, maxId string) (ghttp.H, error)
- func (bot *Bot) GetSelfFollowers(ctx context.Context, maxId string) (ghttp.H, error)
- func (bot *Bot) GetSelfFollowings(ctx context.Context, maxId string) (ghttp.H, error)
- func (bot *Bot) GetSelfTags(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) GetSuggestedSearches(ctx context.Context, _type string) (ghttp.H, error)
- func (bot *Bot) GetTagInfo(ctx context.Context, name string) (ghttp.H, error)
- func (bot *Bot) GetTagSections(ctx context.Context, name string, tab string, page int) (ghttp.H, error)
- func (bot *Bot) GetTagStory(ctx context.Context, name string) (ghttp.H, error)
- func (bot *Bot) GetTimeline(ctx context.Context, maxId string) (ghttp.H, error)
- func (bot *Bot) GetTopSearches(ctx context.Context, query string, count int) (ghttp.H, error)
- func (bot *Bot) GetUUID() string
- func (bot *Bot) GetUserById(ctx context.Context, userId string) (ghttp.H, error)
- func (bot *Bot) GetUserByName(ctx context.Context, username string) (ghttp.H, error)
- func (bot *Bot) GetUserFeed(ctx context.Context, userId string, maxId string) (ghttp.H, error)
- func (bot *Bot) GetUserFollowers(ctx context.Context, userId string, maxId string) (ghttp.H, error)
- func (bot *Bot) GetUserFollowings(ctx context.Context, userId string, maxId string) (ghttp.H, error)
- func (bot *Bot) GetUserFriendship(ctx context.Context, userId string) (ghttp.H, error)
- func (bot *Bot) GetUserId() string
- func (bot *Bot) GetUserTags(ctx context.Context, userId string) (ghttp.H, error)
- func (bot *Bot) LikeMedia(ctx context.Context, mediaId string, undo bool) (ghttp.H, error)
- func (bot *Bot) LikeMediaComment(ctx context.Context, commentId string, undo bool) (ghttp.H, error)
- func (bot *Bot) Login(ctx context.Context, interactive bool) (ghttp.H, error)
- func (bot *Bot) Logout(ctx context.Context) (ghttp.H, error)
- func (bot *Bot) PostAlbum(ctx context.Context, imageFiles []string, caption string, disableComments bool) (ghttp.H, error)
- func (bot *Bot) PostPhoto(ctx context.Context, imageFile string, caption string, disableComments bool) (ghttp.H, error)
- func (bot *Bot) ReplyMediaComment(ctx context.Context, mediaId string, commentId string, commentText string) (ghttp.H, error)
- func (bot *Bot) SaveMedia(ctx context.Context, mediaId string, undo bool) (ghttp.H, error)
- func (bot *Bot) SaveMediaToCollections(ctx context.Context, mediaId string, undo bool, collectionIds ...string) (ghttp.H, error)
- func (bot *Bot) SearchPlaces(ctx context.Context, query string, count int) (ghttp.H, error)
- func (bot *Bot) SearchTags(ctx context.Context, query string, count int) (ghttp.H, error)
- func (bot *Bot) SearchUser(ctx context.Context, query string, count int) (ghttp.H, error)
- func (bot *Bot) SendMediaComment(ctx context.Context, mediaId string, commentText string) (ghttp.H, error)
- func (bot *Bot) SendRequest(req *ghttp.Request) *ghttp.Response
- func (bot *Bot) SetAccountBiography(ctx context.Context, biography string) (ghttp.H, error)
- func (bot *Bot) SetAccountGender(ctx context.Context, gender string) (ghttp.H, error)
- func (bot *Bot) SetAccountPrivate(ctx context.Context, undo bool) (ghttp.H, error)
- func (bot *Bot) TwoFactorLogin(ctx context.Context, twoFactorId string, twoFactorCode string) (ghttp.H, error)
- func (bot *Bot) UploadPhoto(ctx context.Context, r io.Reader, isSidecar bool) (ghttp.H, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateUUID ¶
func GenerateUUID() string
Types ¶
type Bot ¶
type Bot struct { Client *ghttp.Client `json:"-"` Username string `json:"username"` Password string `json:"password"` // contains filtered or unexported fields }
func (*Bot) ArchiveMedia ¶
func (*Bot) ConfigureMedia ¶
func (*Bot) ConfigureSidecarMedia ¶
func (*Bot) CreateCollection ¶
func (*Bot) DeleteCollection ¶
func (*Bot) DeleteMedia ¶
func (*Bot) DeleteMediaComments ¶
func (*Bot) DisableMediaComments ¶
func (*Bot) EditCollection ¶
func (*Bot) ExploreCluster ¶
func (*Bot) FollowUser ¶
func (*Bot) GetCSRFToken ¶
func (*Bot) GetDeviceId ¶
func (*Bot) GetMediaComments ¶
func (*Bot) GetRecentSearches ¶
func (*Bot) GetSelfFeed ¶
func (*Bot) GetSelfFollowers ¶
func (*Bot) GetSelfFollowings ¶
func (*Bot) GetSuggestedSearches ¶
func (*Bot) GetTagInfo ¶
func (*Bot) GetTagSections ¶
func (bot *Bot) GetTagSections(ctx context.Context, name string, tab string, page int) (ghttp.H, error)
supported_tabs: ["top","recent"]
func (*Bot) GetTagStory ¶
func (*Bot) GetTimeline ¶
func (*Bot) GetTopSearches ¶
func (*Bot) GetUserById ¶
func (*Bot) GetUserByName ¶
func (*Bot) GetUserFeed ¶
func (*Bot) GetUserFollowers ¶
func (*Bot) GetUserFollowings ¶
func (*Bot) GetUserFriendship ¶
func (*Bot) GetUserTags ¶
func (*Bot) LikeMediaComment ¶
func (*Bot) ReplyMediaComment ¶
func (*Bot) SaveMediaToCollections ¶
func (*Bot) SearchPlaces ¶
func (*Bot) SearchTags ¶
func (*Bot) SearchUser ¶
func (*Bot) SendMediaComment ¶
func (*Bot) SetAccountBiography ¶
func (*Bot) SetAccountGender ¶
func (*Bot) SetAccountPrivate ¶
func (*Bot) TwoFactorLogin ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.