go-instagram

module
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT

README

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

Directories

Path Synopsis
examples
src
utils/auth/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
utils/request/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
utils/session/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
utils/text/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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