Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Create(p CreateParams) (*CreateResponse, error)
- func (c *Client) Delete(p DeleteParams) error
- func (c *Client) Get(p GetParams, data interface{}) error
- func (c *Client) List(p ListParams, data interface{}) error
- func (c *Client) SetHTTPClient(client httpClient)
- func (c *Client) Update(p UpdateParams) (*UpdateResponse, error)
- type CreateParams
- type CreateResponse
- type DeleteParams
- type GetParams
- type HttpResponseError
- type ListParams
- type UpdateParams
- type UpdateResponse
Constants ¶
View Source
const ( BaseDomain = "microcms.io" APIVersion = "v1" StatusDraft = "draft" )
Base API endpoint
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Create ¶
func (c *Client) Create(p CreateParams) (*CreateResponse, error)
func (*Client) Delete ¶
func (c *Client) Delete(p DeleteParams) error
func (*Client) List ¶
func (c *Client) List(p ListParams, data interface{}) error
func (*Client) SetHTTPClient ¶
func (c *Client) SetHTTPClient(client httpClient)
func (*Client) Update ¶
func (c *Client) Update(p UpdateParams) (*UpdateResponse, error)
type CreateParams ¶
type CreateResponse ¶
type CreateResponse struct {
ID string
}
type DeleteParams ¶
type HttpResponseError ¶ added in v1.1.0
func (*HttpResponseError) Error ¶ added in v1.1.0
func (r *HttpResponseError) Error() string
type ListParams ¶
type UpdateParams ¶
type UpdateResponse ¶
type UpdateResponse struct {
ID string
}
Click to show internal directories.
Click to hide internal directories.