Documentation
¶
Index ¶
- func DownloadToFile(ctx context.Context, downloadURL string, path string) error
- type AuthorizeDownloadRequest
- type AuthorizeDownloadResponse
- type Client
- func (c *Client) AuthorizeDownload(ctx context.Context, accessToken string, req AuthorizeDownloadRequest) (AuthorizeDownloadResponse, error)
- func (c *Client) GetManifest(ctx context.Context, accessToken string, req ManifestRequest) (ManifestResponse, error)
- func (c *Client) Login(ctx context.Context, req LoginRequest) (LoginResponse, error)
- func (c *Client) Refresh(ctx context.Context, req RefreshRequest) (RefreshResponse, error)
- type ClientOptions
- type LoginRequest
- type LoginResponse
- type ManifestRequest
- type ManifestResponse
- type RefreshRequest
- type RefreshResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(base string, opts ClientOptions) *Client
func (*Client) AuthorizeDownload ¶
func (c *Client) AuthorizeDownload(ctx context.Context, accessToken string, req AuthorizeDownloadRequest) (AuthorizeDownloadResponse, error)
func (*Client) GetManifest ¶
func (c *Client) GetManifest(ctx context.Context, accessToken string, req ManifestRequest) (ManifestResponse, error)
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, req LoginRequest) (LoginResponse, error)
func (*Client) Refresh ¶
func (c *Client) Refresh(ctx context.Context, req RefreshRequest) (RefreshResponse, error)
type ClientOptions ¶
type LoginRequest ¶
type LoginResponse ¶
type ManifestRequest ¶
type ManifestResponse ¶
type RefreshRequest ¶
Click to show internal directories.
Click to hide internal directories.