Skip to content

JavaScript Async/Await API for proxy service IPRoyal.com

Notifications You must be signed in to change notification settings

bsnext/IPRoyal.com-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IPRoyal Residential API Wrapper

JavaScript Async/Await API for proxy service IPRoyal.com

API

To work with the API, you must have an account token. You can get it in your personal account on the portal.

Starting

Connect the IPRoyal module to Node.JS and create a new instance of the class.

let iproyal = require(`iproyal-wrapper`);
let token = `abc`; // IPRoyal account token

let account = new iproyal(token);

Methods

  • new IPRoyal();
  • account.getInfo();
  • account.getSubUsers();
  • account.createSubUser();
  • account.getSubUserInfo();
  • account.updateSubUserInfo();
  • account.addSubUserTraffic();
  • account.takeSubUserTraffic();
  • account.getAvailableCountries();
  • account.getAvailableCountrySets();
  • account.getAvailableRegions();
  • account.getProxyHostNames();
  • account.generateUserProxyList();

Examples

let account = new iproyal(`abc`);
let subusersList = await account.getSubUsers(10);
console.log(subusersList);
console.log(await subusersList.next());
console.log(await subusersList.next());
let account = new iproyal(`abc`);
let newSubUser = await account.creteSubUser(`login`, `password`, traffic);
console.log(anewSubUser);
let newSubUser = await account.creteSubUser(`login`, `password`, traffic);
console.log(await account.addSubUserTraffic(newSubUser.id, 4));

About

JavaScript Async/Await API for proxy service IPRoyal.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published