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 (c *LaterPayClient) Add(i ItemDefinition) (string, error)
func (*LaterPayClient) GetTokenURL ¶
func (c *LaterPayClient) GetTokenURL(redir string) (string, error)
Click to show internal directories.
Click to hide internal directories.