Documentation ¶
Index ¶
- type AboutUserResponse
- type Candidate
- type Caption
- type CommentsResponse
- type DefaultParams
- type DefaultResponse
- type FeedItem
- type HashtagFeedParams
- type ImageVersions2
- type Inbox
- type Instagram
- func (ig *Instagram) CreateSignature() (sigVersion string, signedBody string)
- func (ig *Instagram) GetComments(mediaId, maxId string) ([]constants.UserCompetitor, string, error)
- func (ig *Instagram) GetFeedOf(feedName, tag, maxId string) (json.RawMessage, string, error)
- func (ig *Instagram) GetLikers(mediaId, maxId string) ([]constants.UserCompetitor, string, error)
- func (ig *Instagram) GetLocationIdByName(location, maxId string) ([]constants.Location, string, error)
- func (ig *Instagram) GetLocationSections(id, maxId, sectionTab string) ([]*constants.LocationSection, string, error)
- func (ig *Instagram) GetPosts(userId, maxId string) ([]constants.MediaItem, string, error)
- func (ig *Instagram) GetUserByName(userName string) (LoggedInUser, error)
- func (ig *Instagram) GetUserFollowers(userId string, maxId string) ([]constants.UserCompetitor, string, error)
- func (ig *Instagram) GetUserFollowing(userId string, maxId string) ([]constants.UserCompetitor, string, error)
- func (ig *Instagram) Like(mediaID string) error
- func (ig *Instagram) Login() (err error)
- func (ig *Instagram) SendRequest(agent *gorequest.SuperAgent) (*http.Response, string, []error)
- func (ig *Instagram) Unlike(mediaID string) error
- type ItemsResponse
- type Location
- type LocationSectionRequest
- type LocationSectionResponse
- type LocationSectionTab
- type LoggedInUser
- type Media
- type MediaOrAd
- type PostsResponse
- type RankTokenGenerator
- type SectionResponse
- type SuggestedUsers
- type Thread
- type ThreadItem
- type TimelineFeed
- type User
- type UsersResponse
- type VideoVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AboutUserResponse ¶
type AboutUserResponse struct { DefaultResponse User LoggedInUser `json:"user"` }
type Caption ¶
type Caption struct { Status string `json:"status"` UserID int `json:"user_id"` CreatedAtUTC int64 `json:"created_at_utc"` CreatedAt int64 `json:"created_at"` BitFlags int `json:"bit_flags"` User User `json:"user"` ContentType string `json:"content_type"` Text string `json:"text"` MediaID int64 `json:"media_id"` Pk int64 `json:"pk"` Type int `json:"type"` }
type CommentsResponse ¶
type CommentsResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Comments json.RawMessage `json:"comments"` }
type DefaultParams ¶
type DefaultResponse ¶
type FeedItem ¶
type FeedItem struct { MediaOrAd MediaOrAd `json:"media_or_ad"` SuggestedUsers SuggestedUsers `json:"suggested_users"` }
type HashtagFeedParams ¶
type ImageVersions2 ¶
type ImageVersions2 struct {
Candidates []Candidate `json:"candidates"`
}
type Inbox ¶
Inbox type
func (*Inbox) ApproveAllThreads ¶
ApproveAllThreads will approve all pending message requests
type Instagram ¶
type Instagram struct { Username string Password string Proxy string Pk int64 AgentPool *utils.SuperAgentPool Inbox *Inbox TimelineFeed *TimelineFeed Cookies []*http.Cookie }
func (*Instagram) CreateSignature ¶
func (*Instagram) GetComments ¶
func (*Instagram) GetLocationIdByName ¶
func (*Instagram) GetLocationSections ¶
func (*Instagram) GetUserByName ¶
func (ig *Instagram) GetUserByName(userName string) (LoggedInUser, error)
func (*Instagram) GetUserFollowers ¶
func (*Instagram) GetUserFollowing ¶
func (*Instagram) SendRequest ¶
type ItemsResponse ¶
type ItemsResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Items json.RawMessage `json:"items"` }
type Location ¶
type Location struct { ExternalSource string `json:"external_source"` City string `json:"city"` Name string `json:"name"` FacebookPlacesID int64 `json:"facebook_places_id"` Address string `json:"address"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` Pk int64 `json:"pk"` Instagram *Instagram `json:"-"` }
func (Location) GetRankedMedias ¶
func (Location) GetRecentMedias ¶
type LocationSectionRequest ¶
type LocationSectionResponse ¶
type LocationSectionResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Sections []*constants.LocationSection `json:"sections"` }
type LocationSectionTab ¶
type LocationSectionTab string
const ( LocationSectionTabRanked LocationSectionTab = "ranked" LocationSectionTabRecent LocationSectionTab = "recent" )
type LoggedInUser ¶
type Media ¶
type Media struct { Pk int `json:"pk"` ID string `json:"id"` DeviceTimestamp int `json:"device_timestamp"` MediaType int `json:"media_type"` Code string `json:"code"` ImageVersions2 ImageVersions2 `json:"image_versions2"` Location Location `json:"location"` LikeCount int `json:"like_count"` HasLiked bool `json:"has_liked"` }
type MediaOrAd ¶
type MediaOrAd struct { Pk int64 `json:"pk"` ID string `json:"id"` MediaType int `json:"media_type"` ImageVersions2 ImageVersions2 `json:"image_versions2"` Caption Caption `json:"caption"` CaptionIsEdited bool `json:"caption_is_edited"` VideoVersions []*VideoVersion `json:"video_versions"` VideoDuriation float64 `json:"video_duration"` User User `json:"user"` HasMoreComments bool `json:"has_more_comments"` HasLiked bool `json:"has_liked"` HasAudio bool `json:"has_audio"` NextMaxID int64 `json:"next_max_id"` ViewCount int `json:"view_count"` CommentCount int `json:"comment_count"` LikeCount int `json:"like_count"` }
type PostsResponse ¶
type PostsResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Items json.RawMessage `json:"items"` }
type RankTokenGenerator ¶
type SectionResponse ¶
type SectionResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Sections []constants.Section `json:"sections"` }
type SuggestedUsers ¶
type Thread ¶
type Thread struct { ID string `json:"thread_id"` Users []*User `json:"users"` Items []*ThreadItem `json:"items"` ImageVersions2 ImageVersions2 `json:"image_versions2"` HasNewer bool `json:"has_newer"` Instagram *Instagram `json:"-"` }
func (*Thread) BroadcastText ¶
type ThreadItem ¶
type TimelineFeed ¶
type TimelineFeed struct { Items []*FeedItem `json:"feed_items"` MoreAvailable bool `json:"-"` Cursor string `json:"-"` Instagram *Instagram `json:"-"` RankTokenGenerator }
func (*TimelineFeed) Get ¶
func (feed *TimelineFeed) Get() ([]*FeedItem, error)
func (*TimelineFeed) GetCursor ¶
func (feed *TimelineFeed) GetCursor() string
func (*TimelineFeed) IsMoreAvailable ¶
func (feed *TimelineFeed) IsMoreAvailable() bool
func (*TimelineFeed) SetCursor ¶
func (feed *TimelineFeed) SetCursor(maxID string)
type UsersResponse ¶
type UsersResponse struct { DefaultResponse NextMaxId string `json:"next_max_id"` Users json.RawMessage `json:"users"` }
Click to show internal directories.
Click to hide internal directories.