license

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package license provides APIs related to licenses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*paddle.Client
}

Client performs API operations.

func (Client) Create

func (c Client) Create(productID int64, allowedUses int, expiresAt time.Time) (*License, error)

CreateLicense generates a new license code for a given SDK product.

type License

type License struct {
	Code      string      `json:"license_code"`
	ExpiresAt paddle.Time `json:"expires_at"`
}

License represents a license for an SDK product.

Jump to

Keyboard shortcuts

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