Constructor
new User(request, username, cookiesopt)
Create user.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
request |
object
|
Axios client. |
||
username |
string
|
Username. |
||
cookies |
string
|
<optional> |
null |
Cookie string. |
Members
isTitlesBlocked :boolean|null
Is user titles blocked?
- Source:
Type:
-
boolean
|null
Methods
(async) entries(options) → {Promise.<UserEntryCollection>}
Fetch user entries by latest.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) favoriteAuthors() → {UserFavoriteAuthorCollection}
Fetch user favorite authors until last one month.
- Source:
(async) favoritedEntries(options) → {Promise.<UserEntryCollection>}
Fetch user favorited entries by most favorited.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) favorites(options) → {Promise.<UserEntryCollection>}
Fetch user favorite entries by latest.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) lastVotedEntries(options) → {Promise.<UserEntryCollection>}
Fetch user last voted entries.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) mostLikedEntries(options) → {Promise.<UserEntryCollection>}
Fetch user most liked entries.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
retrieve() → {Promise}
Retrieve user.
- Source:
Returns:
- Type:
-
Promise
Promise.
(async) selfFavoritedEntries(options) → {Promise.<UserEntryCollection>}
Fetch user self favorited entries.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|