instagram

package
v0.0.0-...-6e117fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Crawler

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

func NewCrawler

func NewCrawler(username, password string) *Crawler

func (*Crawler) Media

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

type Session

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

func NewSession

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

func (*Session) Close

func (s *Session) Close() error

func (*Session) Follow

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

func (*Session) GetFollowers

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

func (*Session) GetRecentUserMedias

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

func (*Session) GetUserDetails

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

func (*Session) GetUsers

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

func (*Session) UploadPhoto

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL