instagram

package
v0.0.0-...-53884a3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ImageMediaType = MediaType("GraphImage")

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func (*Client) MediaForUser

func (c *Client) MediaForUser(username string) ([]Media, error)

type Media

type Media struct {
	ID         string    `json:"id"`
	Type       MediaType `json:"__typename"`
	Dimensions struct {
		Width  int
		Height int
	} `json:"dimensions"`
	Thumbnail string `json:"thumbnail_src"`
	Caption   string `json:"caption"`
}

type MediaType

type MediaType string

type User

type User struct {
	Username  string `json:"username"`
	Biography string `json:"biography"`
	Media     struct {
		Nodes []Media `json:"nodes"`
	} `json:"media"`
}

type UserResponse

type UserResponse struct {
	User User `json:"user"`
}

Jump to

Keyboard shortcuts

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