nick_bot: github.com/icholy/nick_bot/instagram Index | Files

package instagram

import "github.com/icholy/nick_bot/instagram"

Index

Package Files

crawler.go instagram.go

Variables

var ErrInvalidResponseStatus = errors.New("instagram: invalid response status")

type Crawler Uses

type Crawler struct {
    // contains filtered or unexported fields
}

func NewCrawler Uses

func NewCrawler(username, password string) *Crawler

func (*Crawler) Media Uses

func (c *Crawler) Media() <-chan *model.Media

type Session Uses

type Session struct {
    // contains filtered or unexported fields
}

func NewSession Uses

func NewSession(username, password string) (*Session, error)

func (*Session) Close Uses

func (s *Session) Close() error

func (*Session) Follow Uses

func (s *Session) Follow(userID int64) error

func (*Session) GetFollowers Uses

func (s *Session) GetFollowers(userID int64) ([]*model.User, error)

func (*Session) GetRecentUserMedias Uses

func (s *Session) GetRecentUserMedias(u *model.User) ([]*model.Media, error)

func (*Session) GetUserDetails Uses

func (s *Session) GetUserDetails(userID int64) (*model.UserDetails, error)

func (*Session) GetUsers Uses

func (s *Session) GetUsers() ([]*model.User, error)

func (*Session) UploadPhoto Uses

func (s *Session) UploadPhoto(imgPath string, caption string) error

Package instagram imports 9 packages (graph) and is imported by 1 packages. Updated 2017-06-10. Refresh now. Tools for package owners.