insta

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package insta provides a wrapper over goinsta

Index

Constants

This section is empty.

Variables

View Source
var Accounts = map[string]*goinsta.Instagram{}

Accounts is a map of all Instagram accounts currently in use. username => Instagram This is used to reuse instagram connections so an account is only logged in once. TODO implement wrapper funcs and replace Login, etc...

Functions

func Acc

func Acc(name string) (*goinsta.Instagram, error)

Acc is a wrapper function to return a Instagram Account by name. Automatically logs in the account if not logged and updates respective fields in the Account model.

func Decrypt

func Decrypt(text string) (string, error)

Decrypt text from base64 crypto with the AES key stored in config

func Encrypt

func Encrypt(text string) (string, error)

Encrypt text to base64 crypto with the AES key stored in config

func ExportCached

func ExportCached(ig *goinsta.Instagram) ([]byte, error)

ExportCached will export the cached instagram object using the configs AESKey.

func Import

func Import(b []byte) (*goinsta.Instagram, error)

Import an account from it's cached bytes

func Login

func Login(username, password, proxy string) (*goinsta.Instagram, error)

Login will connect to Instagram through a proxy if one is passed

Types

This section is empty.

Jump to

Keyboard shortcuts

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