-
Notifications
You must be signed in to change notification settings - Fork 0
/
socket.yml
68 lines (67 loc) · 1.99 KB
/
socket.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Dictionary
description: Oxfrod's Dictionary and Translator
version: 1.0.0
author: Tomsonpl
endpoints:
translate:
description: Translate from one language to another
file: scripts/getTranslations.js
parameters:
source_language:
type: string
description: "What should be the source language?"
example: "en"
word:
type: string
description: "What term would you like to translate?"
example: "beautiful"
target_language:
type: string
description: "What should be the target language?"
example: "es"
get_definitions:
description: Get description of a word
file: scripts/getDefinitions.js
parameters:
source_language:
type: string
description: "What should be the source language?"
example: "en"
word:
type: string
description: "What term would you like to translate?"
example: "beautiful"
get_examples:
description: Get example usage of the word
file: scripts/getExamples.js
parameters:
source_language:
type: string
description: "What should be the source language?"
example: "en"
word:
type: string
description: "Which term would you like to see examples of?"
example: "beautiful"
get_languages:
description: Get all possible languages
file: scripts/getLanguages.js
get_synonyms:
description: Get description of a word
file: scripts/getSynonyms.js
parameters:
source_language:
type: string
description: "What should be the source language?"
example: "en"
word:
type: string
description: "What term would you like to translate?"
example: "beautiful"
CONFIG:
app_id:
description: "app_id provided after registering an app in oxfords dictionary"
value: "<your_app_id>"
app_key:
description: "app_key provided after registering an app in oxfords dictionary"
value: "<your_app_key>"