H
H
Hanry6542020-05-09 17:02:36
Node.js
Hanry654, 2020-05-09 17:02:36

How to send a request through a proxy to yandex-translate (liba)?

For proxies I use the 'tunnel' package, the request looks like this where to put this agent with my proxy?

translate.translate('You can burn my house, steal my car, drink my liquor from an old fruitjar.', { to: 'ru' }, function(err, res) {
    console.log(res.text);
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question