Skip to content

hieven/go-instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-instagram

Build Statuscodecov

This project is for study and personal use only. We hold no responsibilty of any use that violate Instagram's terms and conditions.

Installation

$ go get github.com/hieven/go-instagram

Documentation

  • GoDoc Instagram
  • GoDoc Instagram Models

Features

You can use this repo to:

  • like/unlike media
  • get timeline feed
  • get ranked media / recent media of a location
  • get inbox messages
  • broadcast to any inbox thread
  • approve pending inbox thread

The project is still in its early stage. Any pull request to extend its functionalities is most welcome.

Example

cnf := &config.Config{
  Username: "USERNAME",
  Password: "PASSWORD",
}

ctx := context.Background()

ig, _ := instagram.New(cnf)
ig.Login(ctx)

Aresp, _ := ig.Timeline().Feed(ctx, instagram.TimelineFeedReques{})
fmt.Println(Aresp.Items[0].MediaOrAd)

Find more complex examples on examples

License

MIT

Similar Projects