Documentation ¶
Index ¶
- type Candidate
- type Caption
- type DefaultResponse
- type FeedItem
- type ImageVersions2
- type Inbox
- type Instagram
- func (ig *Instagram) CreateSignature() (sigVersion string, signedBody string)
- func (ig *Instagram) Like(mediaID string) error
- func (ig *Instagram) Login() error
- func (ig *Instagram) SendRequest(agent *gorequest.SuperAgent) (gorequest.Response, string, []error)
- func (ig *Instagram) Unlike(mediaID string) error
- type Location
- type Media
- type MediaOrAd
- type RankTokenGenerator
- type SuggestedUsers
- type Thread
- type ThreadItem
- type TimelineFeed
- type User
- type VideoVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 DefaultResponse ¶
type FeedItem ¶
type FeedItem struct { MediaOrAd MediaOrAd `json:"media_or_ad"` SuggestedUsers SuggestedUsers `json:"suggested_users"` }
type ImageVersions2 ¶
type ImageVersions2 struct {
Candidates []Candidate `json:"candidates"`
}
type Inbox ¶
type Inbox struct { Threads []*Thread `json:"threads"` HasOlder bool `json:"has_older"` OldestCursor string `json:"oldest_cursor"` Instagram *Instagram `json:"-"` }
Inbox type
func (*Inbox) ApproveAllThreads ¶
ApproveAllThreads will approve all pending message requests
func (*Inbox) IsMoreAvailalbe ¶
type Instagram ¶
type Instagram struct { Config *config.Config Session session.Session AgentPool *utils.SuperAgentPool Inbox *Inbox TimelineFeed *TimelineFeed // contains filtered or unexported fields }
func (*Instagram) CreateSignature ¶
func (*Instagram) SendRequest ¶
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 Media ¶
type Media struct { Pk int `json:"pk"` ID string `json:"id"` MediaType int `json:"media_type"` FilterType int `json:"filter_type"` CarouselMedia []*Media `json:"carousel_media"` ImageVersions2 ImageVersions2 `json:"image_versions2"` Location Location `json:"location"` OriginalWidth int `json:"original_width"` OriginalHeight int `json:"original_height"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` Code string `json:"code"` LikeCount int `json:"like_count"` CommentCount int `json:"comment_count"` Caption Caption `json:"caption"` HasLiked bool `json:"has_liked"` HasMoreComments bool `json:"has_more_comments"` ClientCacheKey string `json:"client_cache_key"` OrganicTrackingToken string `json:"organic_tracking_token"` DeviceTimestamp int `json:"device_timestamp"` TakenAt int `json:"taken_at"` }
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 RankTokenGenerator ¶
type SuggestedUsers ¶
type Thread ¶
type Thread struct { ID string `json:"thread_id"` Users []*User `json:"users"` Items []*ThreadItem `json:"items"` 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)
Click to show internal directories.
Click to hide internal directories.