ginsta

package module
v0.0.0-...-65ba3dc Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ginsta

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

func NewGinsta

func NewGinsta(client *http.Client, sessionIDs []string) *Ginsta

func (*Ginsta) PostByShortcode

func (g *Ginsta) PostByShortcode(ctx context.Context, shortcode string) (*Post, error)

func (*Ginsta) PostsByID

func (g *Ginsta) PostsByID(ctx context.Context, id string) ([]*Post, error)

func (*Ginsta) StoriesByID

func (g *Ginsta) StoriesByID(ctx context.Context, id string) ([]*Story, error)

func (*Ginsta) UserByUsername

func (g *Ginsta) UserByUsername(ctx context.Context, username string) (*User, error)

type Post

type Post struct {
	ID             string
	Shortcode      string
	Caption        string
	TakenAt        time.Time
	MediaURLs      []string
	Comment        int
	Likes          int
	Video          bool
	AuthorID       string
	AuthorUsername string
}

type Story

type Story struct {
	ID        string
	MediaURLs []string
	Video     bool
	TakenAt   time.Time
}

type User

type User struct {
	Username      string
	FullName      string
	ID            string
	IsPrivate     bool
	IsVerified    bool
	ProfilePicURL string
	Followers     int
	Followings    int
	Videos        []*Video
}

type Video

type Video struct {
	Product    string
	ID         string
	Shortcode  string
	Title      string
	Caption    string
	DisplayURL string
	TakenAt    time.Time
	Comments   int
	Likes      int
	Published  bool
	Duration   float64
}

Jump to

Keyboard shortcuts

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