Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Token string
}
Auth represents the results of a successful authentication
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client makes API calls to lesswrong
func (*Client) CreatePost ¶
func (c *Client) CreatePost(ctx context.Context, r CreatePostRequest) (*CreatePostResponse, error)
CreatePost creates a new post
type CreatePostRequest ¶
type CreatePostResponse ¶
type CreatePostResponse struct {
URL string `json:"linkUrl"`
}
Click to show internal directories.
Click to hide internal directories.