pinterest

package
v0.0.0-...-3518944 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Username string
	Password string
	Client   *httpclient.Client
	// contains filtered or unexported fields
}

func (*Account) Clone

func (a *Account) Clone(ctx httpclient.Context) *Account

func (*Account) Parse

func (a *Account) Parse(raw string) error

func (*Account) SignIn

func (a *Account) SignIn() (*Session, error)

func (*Account) Stats

func (a *Account) Stats(urls []string) (map[string]*Stats, error)

type Board

type Board struct {
	Id   string
	Name string
}

type Pin

type Pin struct {
	Id          string
	Link        string
	Image       string
	Description string
}

type Session

type Session struct {
	Id      string
	Csrf    string
	Version string
	Account *Account
}

func (*Session) Boards

func (s *Session) Boards() ([]*Board, error)

func (*Session) Post

func (s *Session) Post(board *Board, pin *Pin) (*Pin, error)

type Stats

type Stats struct {
	Normalized string
	Count      int
}

Jump to

Keyboard shortcuts

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