DraftEntry

DraftEntry

Draft entry.

Constructor

new DraftEntry(request, title, cookies)

Create draft entry.

Source:
Parameters:
Name Type Description
request object

Axios client.

title string

Title.

cookies string

Cookie string.

Members

author :string

Entry author.

Source:
Type:
  • string

authorUrl :string

Author URL.

Source:
Type:
  • string

content :string

Entry content.

Source:
Type:
  • string

title :string

Entry title.

Source:
Type:
  • string

titleEndpoint :string

Entry title endpoint.

Source:
Type:
  • string

titleId :number

Title ID.

Source:
Type:
  • number

titleSlug :number

Title slug.

Source:
Type:
  • number

titleUrl :string

Entry title URL.

Source:
Type:
  • string

Methods

change(content) → {Promise}

Change the draft entry content.

Source:
Parameters:
Name Type Description
content string

Draft entry content.

Returns:
Type:
Promise

Promise.

dismiss() → {Promise}

Dismiss the draft entry.

Source:
Returns:
Type:
Promise

Promise.

publish() → {Promise}

Publish the draft entry.

Source:
Returns:
Type:
Promise

Promise.

retrieve() → {Promise}

Retrieve the draft entry.

Source:
Returns:
Type:
Promise

Promise.