client

package
v0.0.0-...-ff458ad Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(rt http.RoundTripper, sessionID string, substackName string) (*Client, error)

func (*Client) CreateNewDraft

func (c *Client) CreateNewDraft(ctx context.Context, draft *types.Draft) (*types.Draft, error)

func (*Client) UpdateDraft

func (c *Client) UpdateDraft(ctx context.Context, draftID int, draft *types.Draft) (*types.Draft, error)

Jump to

Keyboard shortcuts

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