You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
sababacash
changed the title
🌟 Предложение: It woud cost a fortune to have a proxy option at the http module
🌟 Предложение: It would cost a fortune to have a proxy option at the http module
Apr 24, 2022
Any api since version 2.3 have a field called agent. You can set it to make API requests through proxy
Example
import{SocksProxyAgent}from'socks-proxy-agent';import{Personal}from'qiwi-sdk';constqiwi=newPersonal(process.env.QIWI_TOKEN,process.env.QIWI_WALLET);constagent=newSocksProxyAgent(process.env.PROXY);qiwi.agent=agent;// If are using custom agent, qiwi instance can not be disposed by itself. // So you need to set agent to undefined if you expect a safe disposalqiwi.agent=undefined;
Идея
The text was updated successfully, but these errors were encountered: