gista

package module
v0.0.0-...-2422fc7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 34 Imported by: 0

README

gista

Golang Instagram Private API

The library is ported from PHP (https://github.com/mgp25/Instagram-API), The mother of all private instagram
libraries.

Installation

go get github.com/aliforever/gista
package main
import (
	"fmt"
	"github.com/aliforever/gista"
)

func main() {
    ig,err := gista.New(nil)
    if err != nil {
    	fmt.Println(err)
    	return
    }
    username, password := "",""
    err = ig.Login(username, password, false)
    if err != nil {
        fmt.Println(err)
        return
    }
}

Contribute to the library by completing the missing methods, simply copy them from the PHP API (with a tiny change).

Documentation

Index

Constants

View Source
const (
	MaxChunkRetries     = 5
	MaxResumableRetries = 15
	MaxConfigureRetries = 5
	MinChunkSize        = 204800
	MaxChunkSize        = 5242880
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instagram

type Instagram struct {
	Username string
	Password string

	AccountId *string

	//Properties
	Account    *account
	Business   *business
	Collection *collection
	Creative   *creative
	Direct     *direct
	Hashtag    *hashtag
	Highlight  *highlight
	Tv         *tv
	Internal   *internal
	Live       *live
	Location   *location
	Media      *media
	People     *people
	Push       *push
	Shopping   *shopping
	Story      *story
	Timeline   *timeline
	Usertag    *usertag
	Discover   *discover
	// contains filtered or unexported fields
}

func New

func New(storageConfig *map[string]string) (i *Instagram, err error)

func (*Instagram) FinishTwoFactorLogin

func (i *Instagram) FinishTwoFactorLogin(username, password, twoFactorIdentifier, verificationCode string) (err error)

func (*Instagram) Login

func (i *Instagram) Login(user, password string, forceLogin bool) (err error)

func (*Instagram) SetAddHTTPResponseToResult

func (i *Instagram) SetAddHTTPResponseToResult(status bool)

func (*Instagram) SetAddRawResponseToResult

func (i *Instagram) SetAddRawResponseToResult(status bool)

Jump to

Keyboard shortcuts

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