Constructor
new EksiSozluk(options)
Create an Eksi Sozluk instance.
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Eksi Sozluk instance settings
|
Extends
Methods
(async) agenda(options) → {Promise.<TitleCollection>}
Fetch agenda.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
createToken(email, password, options) → {SessionToken}
Create Eksi Sozluk session token with your credentials.
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
email |
string
|
Your email address. |
||||||||||
password |
string
|
Your password. |
||||||||||
options |
object
|
Parameters that user can specify.
|
Throws:
-
User not authorized, password or email is wrong.
- Type
-
AuthError
(async) entries(title, options) → {Promise.<EntryCollection>}
Fetch entries.
- Overrides:
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
title |
string
|
Title itself. |
|||||||||||||||||||||||||
options |
object
|
Parameters that user can specify.
|
(async) entryById(entryId) → {Promise.<Entry>}
Fetch entry by id.
- Overrides:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
entryId |
number
|
Entry Id. |
isAuthenticated(cookiesopt) → {Promise.<boolean>}
Check is user authenticated or not.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
cookies |
string
|
<optional> |
this.cookies |
Cookies string. |
Returns:
- Type:
-
Promise.<boolean>
If user authenticated returns true, otherwise false.
isRecaptchaRequired() → {Promise.<boolean>}
Is verify ReCaptcha required to login?
- Source:
Returns:
- Type:
-
Promise.<boolean>
If ReCaptcha required returns true, otherwise false.
(async) login(email, password) → {EksiMember}
Login Eksi Sozluk with your credentials.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
email |
string
|
Your email address. |
password |
string
|
Your password. |
Throws:
-
User not authorized, password or email is wrong.
- Type
-
AuthError
(async) loginWithToken(token) → {EksiMember}
Login Eksi Sozluk with session cookie.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
token |
string
|
Session token of member. |
Throws:
-
User not authorized.
- Type
-
AuthError
(async) questionsInAgenda(options) → {Promise.<TitleCollection>}
Fetch questions in agenda.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) questionsInToday(options) → {Promise.<TitleCollection>}
Fetch questions in today.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) search(text) → {Promise.<SearchResults>}
Search things.
- Overrides:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
text |
string
|
Search text. |
(async) titlesByTag(tagName, options) → {Promise.<TitleCollection>}
Fetch titles by tag.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
tagName |
TagName
|
Tag name. |
||||||||||
options |
object
|
Parameters that user can specify.
|
(async) todayInHistory(year, options) → {Promise.<TitleCollection>}
Fetch today in history.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
year |
string
|
Which year. |
||||||||||
options |
object
|
Parameters that user can specify.
|
(async) untaggedTitles(options) → {Promise.<TitleCollection>}
Fetch untagged titles.
- Overrides:
- Source:
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object
|
Parameters that user can specify.
|
(async) user(username) → {Promise.<User>}
Fetch user.
- Overrides:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
username |
string
|
Username. |