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
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.