Documentation ¶
Overview ¶
SDK for on-demand APIs. Includes article lookup API and projects API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleRequest ¶
ArticleRequest parameters required for article request.
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
Client to simplify work with WME on-demand API.
func (*Client) Article ¶
func (c *Client) Article(ctx context.Context, req *ArticleRequest) (*schema.Page, error)
Article triggers /pages/meta/{project}/{name} endpoint and returns current revision of an article.
func (*Client) GetAccessToken ¶
GetAccessToken returns value of the access token.
func (*Client) Projects ¶
Projects triggers /projects endpoint and returns list of available projects.
func (*Client) SetAccessToken ¶
SetAccessToken sets access token for authentication.
Click to show internal directories.
Click to hide internal directories.