Documentation ¶
Overview ¶
Package instagram helps you with requesting to Instagram without a key.
Index ¶
- Constants
- type Account
- type Location
- type Media
- func GetAccountMedia(username string, limit uint16) ([]Media, error)
- func GetAllAccountMedia(username string) ([]Media, error)
- func GetLocationMedia(id string, limit uint16) ([]Media, error)
- func GetLocationTopMedia(id string) ([9]Media, error)
- func GetMediaByCode(code string) (Media, error)
- func GetMediaByURL(url string) (Media, error)
- func GetTagMedia(tag string, quantity uint16) ([]Media, error)
- func GetTagTopMedia(tag string) ([9]Media, error)
Constants ¶
const TypeCarousel = "carousel"
TypeCarousel is a string that define carousel (collection of media) type for media.
const TypeImage = "image"
TypeImage is a string that define image type for media.
const TypeVideo = "video"
TypeVideo is a string that define video type for media.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Biography string ExternalURL string Followers uint32 Follows uint32 FullName string ID string Private bool Verified bool MediaCount uint32 ProfilePicURL string ProfilePicURLhd string Username string }
An Account describes an Instagram account info.
func GetAccountByUsername ¶
GetAccountByUsername try to find account by username.
func SearchForUsers ¶
SearchForUsers try to find users by given username. Return slice of Account with length of 0 or more.
type Location ¶
A Location describes an Instagram location info.
func GetLocationByID ¶
GetLocationByID try to find location info by id. The id is a facebook location id.
type Media ¶
type Media struct { Caption string Code string CommentsCount uint32 Date uint64 ID string AD bool LikesCount uint32 Type string MediaURL string Owner Account MediaList []mediaItem }
A Media describes an Instagram media info.
func GetAccountMedia ¶
GetAccountMedia try to get slice of user's media. Limit set how much media you need.
func GetAllAccountMedia ¶
GetAllAccountMedia try to get slice of all user's media. It's function the same as GetAccountMedia, except limit = count of user's media.
func GetLocationMedia ¶
GetLocationMedia try to get slice of last location's media. The id is a facebook location id. The limit set how much media you need.
func GetLocationTopMedia ¶
GetLocationTopMedia try to get array of top location's media. The id is a facebook location id. Length of returned array is 9.
func GetMediaByCode ¶
GetMediaByCode try to find media by code. Code can be find in URL to media, after p/. If URL to media is https://www.instagram.com/p/12376OtT5o/, then code of the media is 12376OtT5o.
func GetMediaByURL ¶
GetMediaByURL try to find media by url. URL should be like https://www.instagram.com/p/12376OtT5o/
func GetTagMedia ¶
GetTagMedia try to get slice of last tag's media. The limit set how much media you need.
func GetTagTopMedia ¶
GetTagTopMedia try to get array of top tag's media. Length of returned array is 9.