instagram

package
v0.0.0-...-705404a Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(g *echo.Group)

Route ...

Types

type Activity

type Activity struct {
	Meta struct {
		ErrorType string `json:"error_type"`
	} `json:"meta"`
	Data []struct {
		User struct {
			Username string `json:"username"`
		} `json:"user"`
		Link   string `json:"link"`
		Images struct {
			StandardResolution struct {
				URL    string `json:"url"`
				Width  int    `json:"width"`
				Height int    `json:"height"`
			} `json:"standard_resolution"`
		} `json:"images"`
		Type string `json:"type"`
	} `json:"data"`
}

Activity ...

func (*Activity) HTML

func (a *Activity) HTML() string

HTML ...

func (*Activity) JSON

func (a *Activity) JSON() []map[string]string

JSON ...

func (*Activity) String

func (a *Activity) String() string

String ...

type Client

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

Client ...

func New

func New() *Client

New ...

func (*Client) LatestActivity

func (c *Client) LatestActivity(username string) (*Activity, error)

LatestActivity ...

func (*Client) NewRequest

func (c *Client) NewRequest(method, path string, body io.Reader) (*http.Request, error)

NewRequest ...

func (*Client) SaveAccessToken

func (c *Client) SaveAccessToken(token string) (string, error)

SaveAccessToken ...

Jump to

Keyboard shortcuts

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