0.0.22 • Published 1 year ago
@vanakaru/ekilex-api-client v0.0.22
EKILEX-NODEJS-API-CLIENT
Status
This NodeJs API-Client is still WIP
Getting started
To install this package, you can run this on your terminal:
npm install @vanakaru/ekilex-api-clientimport { EkilexClient } from '@vanakaru/ekilex-api-client';Next, configure the library - you'll need an API-KEY in advance:
- Get your API key from Ekilex user profile page
 - More information from the official Ekilex API Github Page
 - Ekilex 
testenvironment: https://ekitest.tripledev.ee/ekilex/ - Ekilex 
productionenvironment: https://ekilex.ee 
import { EkilexClient } from '@vanakaru/ekilex-api-client';
const ekilexClient = new EkilexClient({
	apiKey: '123456789', // api key from your ekilex user profile page
	environment: 'prod', // or 'test' depending in which environment you created your key
});
const result = await ekilexClient.words.search('tubli', ['eki']);
/* Example Response
{
    "totalCount": 1,
    "words": [
        {
            "wordId": 247445,
            "wordValue": "tubli",
            "wordValuePrese": "tubli",
            "homonymNr": 1,
            "lang": "est",
            "datasetCodes": [
                "eki",
                "les"
            ],
            ...
        }
    ]
}
*/
// Retrieve WordId from result
const wordId = result.words[0].wordId;
const wordDetails = await ekilexClient.words.getDetails(wordId);
/* Example Response
{
    "word": {
        "wordId": 247445,
        "wordValue": "tubli",
        "wordValuePrese": "tubli",
        "homonymNr": 1,
        "lang": "est",
        "morphophonoForm": "tubli",
        "prefixoid": false,
        "suffixoid": false,
        "foreign": false,
        "lexemesTagNames": [
            "kakskeelne: vaste puudub (prantsuse)",
            "koostamisel",
            "süno valmis"
        ],
        "lastActivityEventOn": "2022-10-27T22:31:01.177+00:00",
        "manualEventOn": "2022-10-27T22:31:01.177+00:00"
    },
    "wordTypes": [...],
    "paradigms": [...],
    "lexemes": [...],
    "wordEtymology": [...],
    "odWordRecommendations": [...],
    "wordRelationDetails": {...}
}
*/0.0.22
1 year ago
0.0.21
1 year ago
0.0.20
1 year ago
0.0.19
1 year ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago