laterpay

package
v0.0.0-...-306e305 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ALLOWED_METHODS = []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"}
View Source
var ErrAlreadyEncoded = errors.New("URL already encoded")
View Source
var ErrMethodNotAllowed = errors.New("Method Not Allowed")

Functions

This section is empty.

Types

type ItemDefinition

type ItemDefinition struct {
	Id      string `url:"article_id"`
	Pricing string `url:"pricing"`
	URL     string `url:"url"`
	Title   string `url:"title"`
	Expiry  string `url:"expiry,omitempty"`
}

DOCS

type LaterPayClient

type LaterPayClient struct {
	// access cache with ttl.
	// parse access response.
	//client    http.Client
	Id        string
	SecretKey []byte
	APIRoot   string
	WebRoot   string
}

func (*LaterPayClient) Access

func (c *LaterPayClient) Access(token string, ids ...string) map[string]bool

func (*LaterPayClient) Add

func (*LaterPayClient) GetTokenURL

func (c *LaterPayClient) GetTokenURL(redir string) (string, error)

Jump to

Keyboard shortcuts

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