flickr

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 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) (*Feed, error)

LatestActivity ...

func (*Client) NewRequest

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

NewRequest ...

type Feed

type Feed struct {
	Items []struct {
		Media struct {
			URL    string `xml:"url,attr"`
			Height int    `xml:"height,attr"`
			Width  int    `xml:"width,attr"`
		} `xml:"content"`
		Link string `xml:"link"`
	} `xml:"channel>item"`
}

Feed ...

func (Feed) HTML

func (f Feed) HTML() string

HTML ...

func (Feed) JSON

func (f Feed) JSON() []map[string]string

JSON ...

func (Feed) String

func (f Feed) String() string

Text ...

Jump to

Keyboard shortcuts

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