mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-12 16:13:05 -04:00
dictionary
This commit is contained in:
parent
c051946d89
commit
8e489318e5
4 changed files with 74 additions and 1 deletions
|
@ -28,6 +28,7 @@ const Api = Object.freeze({
|
|||
SEARCH_AUDIO: '/search/audio',
|
||||
SEARCH_BING: '/search/bing',
|
||||
SEARCH_BING_IMAGES: '/search/bing-images',
|
||||
SEARCH_DICTIONARY: '/search/dictionary',
|
||||
SEARCH_GOOGLE: '/search/google',
|
||||
SEARCH_GOOGLE_IMAGES: '/search/google-images',
|
||||
SEARCH_LYRICS: '/search/lyrics',
|
||||
|
|
|
@ -135,6 +135,12 @@ module.exports.bingImages = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.dictionary = async function(context, query){
|
||||
return await request(Api.SEARCH_DICTIONARY, "GET", {}, {
|
||||
q: query
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.tineye = async function(context, url){
|
||||
return await request(Api.SEARCH_TINEYE, "GET", {}, {
|
||||
url: url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue