Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

glesys-api

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glesys-api - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

lib/endpoints/country.js

5

CHANGELOG.md
# Changelog
## 4.1.0 (2019-10-03)
* Added new endpoint methods.
* Switched `POST` to `GET` where applicable.
* Updated inline doc links.
## 4.0.1 (2019-08-03)

@@ -3,0 +8,0 @@ * Replaced deprecated `url.resolve()` calls with `new URL()`.

4

lib/endpoints/account.js

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_account#accountchangepassword
// https://github.com/glesys/API/wiki/API-Documentation#accountchangepassword
changePassword (data) {

@@ -14,3 +14,3 @@ return this.request.post('/account/changepassword', data);

// https://github.com/GleSYS/API/wiki/functions_account#accountinfo
// https://github.com/glesys/API/wiki/API-Documentation#accountinfo
info () {

@@ -17,0 +17,0 @@ return this.request.get('/account/info');

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_api#apilistfunctions
// https://github.com/glesys/API/wiki/API-Documentation#apilistfunctions
listFunctions () {

@@ -14,3 +14,3 @@ return this.request.get('/api/listfunctions');

// https://github.com/GleSYS/API/wiki/functions_api#apimaintenance
// https://github.com/glesys/API/wiki/API-Documentation#apimaintenance
maintenance () {

@@ -20,3 +20,3 @@ return this.request.get('/api/maintenance');

// https://github.com/GleSYS/API/wiki/functions_api#apiserviceinfo
// https://github.com/glesys/API/wiki/API-Documentation#apiserviceinfo
serviceInfo () {

@@ -23,0 +23,0 @@ return this.request.get('/api/serviceinfo');

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_archive#archiveallowedarguments
// https://github.com/glesys/API/wiki/API-Documentation#archiveallowedarguments
allowedArguments () {

@@ -14,3 +14,3 @@ return this.request.get('/archive/allowedarguments');

// https://github.com/GleSYS/API/wiki/functions_archive#archivechangedescription
// https://github.com/glesys/API/wiki/API-Documentation#archivechangedescription
changeDescription (data) {

@@ -20,3 +20,3 @@ return this.request.post('/archive/changedescription', data);

// https://github.com/GleSYS/API/wiki/functions_archive#archivechangepassword
// https://github.com/glesys/API/wiki/API-Documentation#archivechangepassword
changePassword (data) {

@@ -26,3 +26,3 @@ return this.request.post('/archive/changepassword', data);

// https://github.com/GleSYS/API/wiki/functions_archive#archivecreate
// https://github.com/glesys/API/wiki/API-Documentation#archivecreate
create (data) {

@@ -32,3 +32,3 @@ return this.request.post('/archive/create', data);

// https://github.com/GleSYS/API/wiki/functions_archive#archivedelete
// https://github.com/glesys/API/wiki/API-Documentation#archivedelete
delete (data) {

@@ -38,8 +38,8 @@ return this.request.post('/archive/delete', data);

// https://github.com/GleSYS/API/wiki/functions_archive#archivedetails
// https://github.com/glesys/API/wiki/API-Documentation#archivedetails
details (data) {
return this.request.post('/archive/details', data);
return this.request.get('/archive/details', data);
}
// https://github.com/GleSYS/API/wiki/functions_archive#archivelist
// https://github.com/glesys/API/wiki/API-Documentation#archivelist
list () {

@@ -49,3 +49,3 @@ return this.request.get('/archive/list');

// https://github.com/GleSYS/API/wiki/functions_archive#archiveresize
// https://github.com/glesys/API/wiki/API-Documentation#archiveresize
resize (data) {

@@ -52,0 +52,0 @@ return this.request.post('/archive/resize', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_changelog#changelogapi
// https://github.com/glesys/API/wiki/API-Documentation#changelogapi
api () {

@@ -14,3 +14,3 @@ return this.request.get('/changelog/api');

// https://github.com/GleSYS/API/wiki/functions_changelog#changelogcontrolpanel
// https://github.com/glesys/API/wiki/API-Documentation#changelogcontrolpanel
controlPanel () {

@@ -17,0 +17,0 @@ return this.request.get('/changelog/controlpanel');

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_contactperson#contactpersonadd
// https://github.com/glesys/API/wiki/API-Documentation#contactpersonadd
add (data) {

@@ -14,3 +14,3 @@ return this.request.post('/contactperson/add', data);

// https://github.com/GleSYS/API/wiki/functions_contactperson#contactpersondelete
// https://github.com/glesys/API/wiki/API-Documentation#contactpersondelete
delete (data) {

@@ -20,3 +20,3 @@ return this.request.post('/contactperson/delete', data);

// https://github.com/GleSYS/API/wiki/functions_contactperson#contactpersonedit
// https://github.com/glesys/API/wiki/API-Documentation#contactpersonedit
edit (data) {

@@ -26,3 +26,3 @@ return this.request.post('/contactperson/edit', data);

// https://github.com/GleSYS/API/wiki/functions_contactperson#contactpersonlist
// https://github.com/glesys/API/wiki/API-Documentation#contactpersonlist
list () {

@@ -29,0 +29,0 @@ return this.request.get('/contactperson/list');

@@ -8,8 +8,38 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_customer#customercontactinfo
// https://github.com/glesys/API/wiki/API-Documentation#customercontactinfo
contactInfo (data) {
return this.request.post('/customer/contactinfo', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#customercreateproject
createProject (data) {
return this.request.post('/customer/createproject', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#customereditcollaborator
editCollaborator (data) {
return this.request.post('/customer/editcollaborator', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#customerlistcollaborators
listCollaborators () {
return this.request.get('/customer/listcollaborators');
}
// https://github.com/glesys/API/wiki/API-Documentation#customerlistprojects
listProjects () {
return this.request.get('/customer/listprojects');
}
// https://github.com/glesys/API/wiki/API-Documentation#customerremovecollaborator
removeCollaborator (data) {
return this.request.post('/customer/removecollaborator', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#customersettings
settings (data) {
return this.request.post('/customer/settings', data);
}
}
module.exports = Customer;

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_domain#domainadd
// https://github.com/glesys/API/wiki/API-Documentation#domainadd
add (data) {

@@ -14,3 +14,3 @@ return this.request.post('/domain/add', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainaddrecord
// https://github.com/glesys/API/wiki/API-Documentation#domainaddrecord
addRecord (data) {

@@ -20,3 +20,3 @@ return this.request.post('/domain/addrecord', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainallowedarguments
// https://github.com/glesys/API/wiki/API-Documentation#domainallowedarguments
allowedArguments () {

@@ -26,8 +26,8 @@ return this.request.get('/domain/allowedarguments');

// https://github.com/GleSYS/API/wiki/functions_domain#domainavailable
// https://github.com/glesys/API/wiki/API-Documentation#domainavailable
available (data) {
return this.request.post('/domain/available', data);
return this.request.get('/domain/available', data);
}
// https://github.com/GleSYS/API/wiki/functions_domain#domainchangenameservers
// https://github.com/glesys/API/wiki/API-Documentation#domainchangenameservers
changeNameServers (data) {

@@ -37,3 +37,3 @@ return this.request.post('/domain/changenameservers', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domaindelete
// https://github.com/glesys/API/wiki/API-Documentation#domaindelete
delete (data) {

@@ -43,3 +43,3 @@ return this.request.post('/domain/delete', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domaindeleterecord
// https://github.com/glesys/API/wiki/API-Documentation#domaindeleterecord
deleteRecord (data) {

@@ -49,8 +49,8 @@ return this.request.post('/domain/deleterecord', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domaindetails
// https://github.com/glesys/API/wiki/API-Documentation#domaindetails
details (data) {
return this.request.post('/domain/details', data);
return this.request.get('/domain/details', data);
}
// https://github.com/GleSYS/API/wiki/functions_domain#domainedit
// https://github.com/glesys/API/wiki/API-Documentation#domainedit
edit (data) {

@@ -60,3 +60,3 @@ return this.request.post('/domain/edit', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainlegacywebhosting
// https://github.com/glesys/API/wiki/API-Documentation#domainlegacywebhosting
legacyWebHosting () {

@@ -66,3 +66,3 @@ return this.request.get('/domain/legacywebhosting');

// https://github.com/GleSYS/API/wiki/functions_domain#domainlist
// https://github.com/glesys/API/wiki/API-Documentation#domainlist
list () {

@@ -72,8 +72,8 @@ return this.request.get('/domain/list');

// https://github.com/GleSYS/API/wiki/functions_domain#domainlistrecords
// https://github.com/glesys/API/wiki/API-Documentation#domainlistrecords
listRecords (data) {
return this.request.post('/domain/listrecords', data);
return this.request.get('/domain/listrecords', data);
}
// https://github.com/GleSYS/API/wiki/functions_domain#domainpricelist
// https://github.com/glesys/API/wiki/API-Documentation#domainpricelist
priceList () {

@@ -83,3 +83,3 @@ return this.request.get('/domain/pricelist');

// https://github.com/GleSYS/API/wiki/functions_domain#domainregister
// https://github.com/glesys/API/wiki/API-Documentation#domainregister
register (data) {

@@ -89,3 +89,3 @@ return this.request.post('/domain/register', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainrenew
// https://github.com/glesys/API/wiki/API-Documentation#domainrenew
renew (data) {

@@ -95,3 +95,3 @@ return this.request.post('/domain/renew', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainsetautorenew
// https://github.com/glesys/API/wiki/API-Documentation#domainsetautorenew
setAutoRenew (data) {

@@ -101,3 +101,3 @@ return this.request.post('/domain/setautorenew', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domaintransfer
// https://github.com/glesys/API/wiki/API-Documentation#domaintransfer
transfer (data) {

@@ -107,3 +107,3 @@ return this.request.post('/domain/transfer', data);

// https://github.com/GleSYS/API/wiki/functions_domain#domainupdaterecord
// https://github.com/glesys/API/wiki/API-Documentation#domainupdaterecord
updateRecord (data) {

@@ -110,0 +110,0 @@ return this.request.post('/domain/updaterecord', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_email#emailcosts
// https://github.com/glesys/API/wiki/API-Documentation#emailcosts
costs () {

@@ -14,3 +14,3 @@ return this.request.get('/email/costs');

// https://github.com/GleSYS/API/wiki/functions_email#emailcreateaccount
// https://github.com/glesys/API/wiki/API-Documentation#emailcreateaccount
createAccount (data) {

@@ -20,3 +20,3 @@ return this.request.post('/email/createaccount', data);

// https://github.com/GleSYS/API/wiki/functions_email#emailcreatealias
// https://github.com/glesys/API/wiki/API-Documentation#emailcreatealias
createAlias (data) {

@@ -26,3 +26,3 @@ return this.request.post('/email/createalias', data);

// https://github.com/GleSYS/API/wiki/functions_email#emaildelete
// https://github.com/glesys/API/wiki/API-Documentation#emaildelete
delete (data) {

@@ -32,3 +32,3 @@ return this.request.post('/email/delete', data);

// https://github.com/GleSYS/API/wiki/functions_email#emaileditaccount
// https://github.com/glesys/API/wiki/API-Documentation#emaileditaccount
editAccount (data) {

@@ -38,3 +38,3 @@ return this.request.post('/email/editaccount', data);

// https://github.com/GleSYS/API/wiki/functions_email#emaileditalias
// https://github.com/glesys/API/wiki/API-Documentation#emaileditalias
editAlias (data) {

@@ -44,3 +44,3 @@ return this.request.post('/email/editalias', data);

// https://github.com/GleSYS/API/wiki/functions_email#emailglobalquota
// https://github.com/glesys/API/wiki/API-Documentation#emailglobalquota
globalQuota (data) {

@@ -50,8 +50,8 @@ return this.request.post('/email/globalquota', data);

// https://github.com/GleSYS/API/wiki/functions_email#emaillist
// https://github.com/glesys/API/wiki/API-Documentation#emaillist
list (data) {
return this.request.post('/email/list', data);
return this.request.get('/email/list', data);
}
// https://github.com/GleSYS/API/wiki/functions_email#emailoverview
// https://github.com/glesys/API/wiki/API-Documentation#emailoverview
overview () {

@@ -61,5 +61,5 @@ return this.request.get('/email/overview');

// https://github.com/GleSYS/API/wiki/functions_email#emailquota
// https://github.com/glesys/API/wiki/API-Documentation#emailquota
quota (data) {
return this.request.post('/email/quota', data);
return this.request.get('/email/quota', data);
}

@@ -66,0 +66,0 @@ }

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_invoice#invoiceallowedarguments
// https://github.com/glesys/API/wiki/API-Documentation#invoiceallowedarguments
allowedArguments () {

@@ -14,3 +14,3 @@ return this.request.get('/invoice/allowedarguments');

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicebillingperiod
// https://github.com/glesys/API/wiki/API-Documentation#invoicebillingperiod
billingPeriod (data) {

@@ -20,3 +20,3 @@ return this.request.post('/invoice/billingperiod', data);

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicelist
// https://github.com/glesys/API/wiki/API-Documentation#invoicelist
list () {

@@ -26,3 +26,3 @@ return this.request.get('/invoice/list');

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicenext
// https://github.com/glesys/API/wiki/API-Documentation#invoicenext
next () {

@@ -32,3 +32,3 @@ return this.request.get('/invoice/next');

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicepaybypaypal
// https://github.com/glesys/API/wiki/API-Documentation#invoicepaybypaypal
payByPaypal (data) {

@@ -38,3 +38,3 @@ return this.request.post('/invoice/paybypaypal', data);

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicepaymenthistory
// https://github.com/glesys/API/wiki/API-Documentation#invoicepaymenthistory
paymentHistory () {

@@ -44,3 +44,3 @@ return this.request.get('/invoice/paymenthistory');

// https://github.com/GleSYS/API/wiki/functions_invoice#invoicesettings
// https://github.com/glesys/API/wiki/API-Documentation#invoicesettings
settings (data) {

@@ -47,0 +47,0 @@ return this.request.post('/invoice/settings', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_ip#ipadd
// https://github.com/glesys/API/wiki/API-Documentation#ipadd
add (data) {

@@ -14,18 +14,18 @@ return this.request.post('/ip/add', data);

// https://github.com/GleSYS/API/wiki/functions_ip#ipdetails
// https://github.com/glesys/API/wiki/API-Documentation#ipdetails
details (data) {
return this.request.post('/ip/details', data);
return this.request.get('/ip/details', data);
}
// https://github.com/GleSYS/API/wiki/functions_ip#iplistfree
// https://github.com/glesys/API/wiki/API-Documentation#iplistfree
listFree (data) {
return this.request.post('/ip/listfree', data);
return this.request.get('/ip/listfree', data);
}
// https://github.com/GleSYS/API/wiki/functions_ip#iplistown
// https://github.com/glesys/API/wiki/API-Documentation#iplistown
listOwn (data) {
return this.request.post('/ip/listown', data);
return this.request.get('/ip/listown', data);
}
// https://github.com/GleSYS/API/wiki/functions_ip#iprelease
// https://github.com/glesys/API/wiki/API-Documentation#iprelease
release (data) {

@@ -35,3 +35,3 @@ return this.request.post('/ip/release', data);

// https://github.com/GleSYS/API/wiki/functions_ip#ipremove
// https://github.com/glesys/API/wiki/API-Documentation#ipremove
remove (data) {

@@ -41,3 +41,3 @@ return this.request.post('/ip/remove', data);

// https://github.com/GleSYS/API/wiki/functions_ip#ipresetptr
// https://github.com/glesys/API/wiki/API-Documentation#ipresetptr
resetPTR (data) {

@@ -47,3 +47,3 @@ return this.request.post('/ip/resetptr', data);

// https://github.com/GleSYS/API/wiki/functions_ip#ipsetptr
// https://github.com/glesys/API/wiki/API-Documentation#ipsetptr
setPTR (data) {

@@ -53,3 +53,3 @@ return this.request.post('/ip/setptr', data);

// https://github.com/GleSYS/API/wiki/functions_ip#iptake
// https://github.com/glesys/API/wiki/API-Documentation#iptake
take (data) {

@@ -56,0 +56,0 @@ return this.request.post('/ip/take', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatclosesession
// https://github.com/glesys/API/wiki/API-Documentation#livechatclosesession
closeSession (data) {

@@ -14,3 +14,3 @@ return this.request.post('/livechat/closesession', data);

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatgetmessages
// https://github.com/glesys/API/wiki/API-Documentation#livechatgetmessages
getMessages (data) {

@@ -20,3 +20,3 @@ return this.request.post('/livechat/getmessages', data);

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatnewsession
// https://github.com/glesys/API/wiki/API-Documentation#livechatnewsession
newSession (data) {

@@ -26,3 +26,3 @@ return this.request.post('/livechat/newsession', data);

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatpostmessage
// https://github.com/glesys/API/wiki/API-Documentation#livechatpostmessage
postMessage (data) {

@@ -32,3 +32,3 @@ return this.request.post('/livechat/postmessage', data);

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatsessioninfo
// https://github.com/glesys/API/wiki/API-Documentation#livechatsessioninfo
sessionInfo (data) {

@@ -38,3 +38,3 @@ return this.request.post('/livechat/sessioninfo', data);

// https://github.com/GleSYS/API/wiki/functions_livechat#livechatstatus
// https://github.com/glesys/API/wiki/API-Documentation#livechatstatus
status () {

@@ -41,0 +41,0 @@ return this.request.get('/livechat/status');

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceraddbackend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddbackend
addBackEnd (data) {

@@ -14,3 +14,3 @@ return this.request.post('/loadbalancer/addbackend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceraddcertificate
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddcertificate
addCertificate (data) {

@@ -20,3 +20,3 @@ return this.request.post('/loadbalancer/addcertificate', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceraddfrontend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddfrontend
addFrontEnd (data) {

@@ -26,3 +26,3 @@ return this.request.post('/loadbalancer/addfrontend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceraddtarget
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddtarget
addTarget (data) {

@@ -32,3 +32,8 @@ return this.request.post('/loadbalancer/addtarget', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancercreate
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddtoblacklist
addToBlacklist (data) {
return this.request.post('/loadbalancer/addtoblacklist', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancercreate
create (data) {

@@ -38,3 +43,3 @@ return this.request.post('/loadbalancer/create', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerdestroy
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerdestroy
destroy (data) {

@@ -44,8 +49,8 @@ return this.request.post('/loadbalancer/destroy', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerdetails
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerdetails
details (data) {
return this.request.post('/loadbalancer/details', data);
return this.request.get('/loadbalancer/details', data);
}
// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerdisabletarget
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerdisabletarget
disableTarget (data) {

@@ -55,3 +60,3 @@ return this.request.post('/loadbalancer/disabletarget', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceredit
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceredit
edit (data) {

@@ -61,3 +66,3 @@ return this.request.post('/loadbalancer/edit', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancereditbackend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancereditbackend
editBackEnd (data) {

@@ -67,3 +72,3 @@ return this.request.post('/loadbalancer/editbackend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancereditfrontend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancereditfrontend
editFrontEnd (data) {

@@ -73,3 +78,3 @@ return this.request.post('/loadbalancer/editfrontend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalanceredittarget
// https://github.com/glesys/API/wiki/API-Documentation#loadbalanceredittarget
editTarget (data) {

@@ -79,3 +84,3 @@ return this.request.post('/loadbalancer/edittarget', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerenabletarget
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerenabletarget
enableTarget (data) {

@@ -85,3 +90,8 @@ return this.request.post('/loadbalancer/enabletarget', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerlist
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancererrors
errors (data) {
return this.request.get('/loadbalancer/errors', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerlist
list () {

@@ -91,8 +101,8 @@ return this.request.get('/loadbalancer/list');

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerlistcertificate
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerlistcertificate
listCertificate (data) {
return this.request.post('/loadbalancer/listcertificate', data);
return this.request.get('/loadbalancer/listcertificate', data);
}
// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerremovebackend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovebackend
removeBackEnd (data) {

@@ -102,3 +112,3 @@ return this.request.post('/loadbalancer/removebackend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerremovecertificate
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovecertificate
removeCertificate (data) {

@@ -108,3 +118,8 @@ return this.request.post('/loadbalancer/removecertificate', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerremovefrontend
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovefromblacklist
removeFromBlacklist (data) {
return this.request.post('/loadbalancer/removefromblacklist', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovefrontend
removeFrontEnd (data) {

@@ -114,3 +129,3 @@ return this.request.post('/loadbalancer/removefrontend', data);

// https://github.com/GleSYS/API/wiki/functions_loadbalancer#loadbalancerremovetarget
// https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovetarget
removeTarget (data) {

@@ -117,0 +132,0 @@ return this.request.post('/loadbalancer/removetarget', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_paymentcard#paymentcardadd
// https://github.com/glesys/API/wiki/API-Documentation#paymentcardadd
add (data) {

@@ -14,3 +14,3 @@ return this.request.post('/paymentcard/add', data);

// https://github.com/GleSYS/API/wiki/functions_paymentcard#paymentcarddelete
// https://github.com/glesys/API/wiki/API-Documentation#paymentcarddelete
delete (data) {

@@ -20,3 +20,3 @@ return this.request.post('/paymentcard/delete', data);

// https://github.com/GleSYS/API/wiki/functions_paymentcard#paymentcardedit
// https://github.com/glesys/API/wiki/API-Documentation#paymentcardedit
edit (data) {

@@ -26,3 +26,3 @@ return this.request.post('/paymentcard/edit', data);

// https://github.com/GleSYS/API/wiki/functions_paymentcard#paymentcardlist
// https://github.com/glesys/API/wiki/API-Documentation#paymentcardlist
list () {

@@ -32,3 +32,3 @@ return this.request.get('/paymentcard/list');

// https://github.com/GleSYS/API/wiki/functions_paymentcard#paymentcardpayinvoices
// https://github.com/glesys/API/wiki/API-Documentation#paymentcardpayinvoices
payInvoices (data) {

@@ -35,0 +35,0 @@ return this.request.post('/paymentcard/payinvoices', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_server#serveraddiso
// https://github.com/glesys/API/wiki/API-Documentation#serveraddiso
addISO (data) {

@@ -14,3 +14,3 @@ return this.request.post('/server/addiso', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverallowedarguments
// https://github.com/glesys/API/wiki/API-Documentation#serverallowedarguments
allowedArguments (data) {

@@ -20,3 +20,3 @@ return this.request.post('/server/allowedarguments', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverbackup
// https://github.com/glesys/API/wiki/API-Documentation#serverbackup
backup (data) {

@@ -26,3 +26,3 @@ return this.request.post('/server/backup', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverclone
// https://github.com/glesys/API/wiki/API-Documentation#serverclone
clone (data) {

@@ -32,13 +32,13 @@ return this.request.post('/server/clone', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverconsole
// https://github.com/glesys/API/wiki/API-Documentation#serverconsole
console (data) {
return this.request.post('/server/console', data);
return this.request.get('/server/console', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#servercosts
// https://github.com/glesys/API/wiki/API-Documentation#servercosts
costs (data) {
return this.request.post('/server/costs', data);
return this.request.get('/server/costs', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#servercreate
// https://github.com/glesys/API/wiki/API-Documentation#servercreate
create (data) {

@@ -48,3 +48,3 @@ return this.request.post('/server/create', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverdestroy
// https://github.com/glesys/API/wiki/API-Documentation#serverdestroy
destroy (data) {

@@ -54,8 +54,8 @@ return this.request.post('/server/destroy', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverdetails
// https://github.com/glesys/API/wiki/API-Documentation#serverdetails
details (data) {
return this.request.post('/server/details', data);
return this.request.get('/server/details', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#serveredit
// https://github.com/glesys/API/wiki/API-Documentation#serveredit
edit (data) {

@@ -65,8 +65,8 @@ return this.request.post('/server/edit', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverlimits
// https://github.com/glesys/API/wiki/API-Documentation#serverlimits
limits (data) {
return this.request.post('/server/limits', data);
return this.request.get('/server/limits', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#serverlist
// https://github.com/glesys/API/wiki/API-Documentation#serverlist
list () {

@@ -76,8 +76,8 @@ return this.request.get('/server/list');

// https://github.com/GleSYS/API/wiki/functions_server#serverlistiso
// https://github.com/glesys/API/wiki/API-Documentation#serverlistiso
listISO (data) {
return this.request.post('/server/listiso', data);
return this.request.get('/server/listiso', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#servermountiso
// https://github.com/glesys/API/wiki/API-Documentation#servermountiso
mountISO (data) {

@@ -87,3 +87,8 @@ return this.request.post('/server/mountiso', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverreboot
// https://github.com/glesys/API/wiki/API-Documentation#servernetworkadapters
networkAdapters (data) {
return this.request.get('/server/networkadapters', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#serverreboot
reboot (data) {

@@ -93,3 +98,3 @@ return this.request.post('/server/reboot', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverresetlimit
// https://github.com/glesys/API/wiki/API-Documentation#serverresetlimit
resetLimit (data) {

@@ -99,3 +104,3 @@ return this.request.post('/server/resetlimit', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverresetpassword
// https://github.com/glesys/API/wiki/API-Documentation#serverresetpassword
resetPassword (data) {

@@ -105,8 +110,8 @@ return this.request.post('/server/resetpassword', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverresourceusage
// https://github.com/glesys/API/wiki/API-Documentation#serverresourceusage
resourceUsage (data) {
return this.request.post('/server/resourceusage', data);
return this.request.get('/server/resourceusage', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#serverstart
// https://github.com/glesys/API/wiki/API-Documentation#serverstart
start (data) {

@@ -116,8 +121,8 @@ return this.request.post('/server/start', data);

// https://github.com/GleSYS/API/wiki/functions_server#serverstatus
// https://github.com/glesys/API/wiki/API-Documentation#serverstatus
status (data) {
return this.request.post('/server/status', data);
return this.request.get('/server/status', data);
}
// https://github.com/GleSYS/API/wiki/functions_server#serverstop
// https://github.com/glesys/API/wiki/API-Documentation#serverstop
stop (data) {

@@ -127,3 +132,3 @@ return this.request.post('/server/stop', data);

// https://github.com/GleSYS/API/wiki/functions_server#servertemplates
// https://github.com/glesys/API/wiki/API-Documentation#servertemplates
templates () {

@@ -130,0 +135,0 @@ return this.request.get('/server/templates');

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_sshkey#sshkeyadd
// https://github.com/glesys/API/wiki/API-Documentation#sshkeyadd
add (data) {

@@ -14,3 +14,3 @@ return this.request.post('/sshkey/add', data);

// https://github.com/GleSYS/API/wiki/functions_sshkey#sshkeylist
// https://github.com/glesys/API/wiki/API-Documentation#sshkeylist
list () {

@@ -20,3 +20,3 @@ return this.request.get('/sshkey/list');

// https://github.com/GleSYS/API/wiki/functions_sshkey#sshkeyremove
// https://github.com/glesys/API/wiki/API-Documentation#sshkeyremove
remove (data) {

@@ -23,0 +23,0 @@ return this.request.post('/sshkey/remove', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_transaction#transactionacknowledge
// https://github.com/glesys/API/wiki/API-Documentation#transactionacknowledge
acknowledge (data) {

@@ -14,3 +14,3 @@ return this.request.post('/transaction/acknowledge', data);

// https://github.com/GleSYS/API/wiki/functions_transaction#transactioncancel
// https://github.com/glesys/API/wiki/API-Documentation#transactioncancel
cancel (data) {

@@ -20,3 +20,3 @@ return this.request.post('/transaction/cancel', data);

// https://github.com/GleSYS/API/wiki/functions_transaction#transactionlist
// https://github.com/glesys/API/wiki/API-Documentation#transactionlist
list () {

@@ -26,3 +26,3 @@ return this.request.get('/transaction/list');

// https://github.com/GleSYS/API/wiki/functions_transaction#transactionstart
// https://github.com/glesys/API/wiki/API-Documentation#transactionstart
start (data) {

@@ -29,0 +29,0 @@ return this.request.post('/transaction/start', data);

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_user#userchangepassword
// https://github.com/glesys/API/wiki/API-Documentation#userchangepassword
changePassword (data) {

@@ -14,3 +14,13 @@ return this.request.post('/user/changepassword', data);

// https://github.com/GleSYS/API/wiki/functions_user#userdetails
// https://github.com/glesys/API/wiki/API-Documentation#userconfirm
confirm (data) {
return this.request.post('/user/confirm', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#usercreateorganization
createOrganization (data) {
return this.request.post('/user/createorganization', data);
}
// https://github.com/glesys/API/wiki/API-Documentation#userdetails
details () {

@@ -20,3 +30,3 @@ return this.request.get('/user/details');

// https://github.com/GleSYS/API/wiki/functions_user#userdisabletwofactor
// https://github.com/glesys/API/wiki/API-Documentation#userdisabletwofactor
disableTwoFactor (data) {

@@ -26,3 +36,3 @@ return this.request.post('/user/disabletwofactor', data);

// https://github.com/GleSYS/API/wiki/functions_user#useredit
// https://github.com/glesys/API/wiki/API-Documentation#useredit
edit (data) {

@@ -32,3 +42,3 @@ return this.request.post('/user/edit', data);

// https://github.com/GleSYS/API/wiki/functions_user#userenabletwofactor
// https://github.com/glesys/API/wiki/API-Documentation#userenabletwofactor
enableTwoFactor (data) {

@@ -38,3 +48,8 @@ return this.request.post('/user/enabletwofactor', data);

// https://github.com/GleSYS/API/wiki/functions_user#userlogin
// https://github.com/glesys/API/wiki/API-Documentation#userlistorganizations
listOrganizations () {
return this.request.get('/user/listorganizations');
}
// https://github.com/glesys/API/wiki/API-Documentation#userlogin
login (data) {

@@ -44,8 +59,18 @@ return this.request.post('/user/login', data);

// https://github.com/GleSYS/API/wiki/functions_user#userlogout
// https://github.com/glesys/API/wiki/API-Documentation#userlogout
logout () {
return this.request.post('/user/logout');
}
// https://github.com/glesys/API/wiki/API-Documentation#usersearchdata
searchData () {
return this.request.get('/user/searchdata');
}
// https://github.com/glesys/API/wiki/API-Documentation#usersignup
signUp (data) {
return this.request.post('/user/signup', data);
}
}
module.exports = User;

@@ -8,3 +8,3 @@ 'use strict';

// https://github.com/GleSYS/API/wiki/functions_vpn#vpncreateuser
// https://github.com/glesys/API/wiki/API-Documentation#vpncreateuser
createUser (data) {

@@ -14,3 +14,3 @@ return this.request.post('/vpn/createuser', data);

// https://github.com/GleSYS/API/wiki/functions_vpn#vpndeleteuser
// https://github.com/glesys/API/wiki/API-Documentation#vpndeleteuser
deleteUser (data) {

@@ -20,3 +20,3 @@ return this.request.post('/vpn/deleteuser', data);

// https://github.com/GleSYS/API/wiki/functions_vpn#vpnedituser
// https://github.com/glesys/API/wiki/API-Documentation#vpnedituser
editUser (data) {

@@ -26,3 +26,3 @@ return this.request.post('/vpn/edituser', data);

// https://github.com/GleSYS/API/wiki/functions_vpn#vpnlistusers
// https://github.com/glesys/API/wiki/API-Documentation#vpnlistusers
listUsers () {

@@ -29,0 +29,0 @@ return this.request.get('/vpn/listusers');

@@ -43,2 +43,6 @@ 'use strict';

get country () {
return this.getEndpoint('country');
}
get customer () {

@@ -56,2 +60,6 @@ return this.getEndpoint('customer');

get fileStorage () {
return this.getEndpoint('filestorage');
}
get invoice () {

@@ -73,2 +81,10 @@ return this.getEndpoint('invoice');

get network () {
return this.getEndpoint('network');
}
get networkAdapter () {
return this.getEndpoint('networkadapter');
}
get paymentCard () {

@@ -78,2 +94,6 @@ return this.getEndpoint('paymentcard');

get project () {
return this.getEndpoint('project');
}
get server () {

@@ -80,0 +100,0 @@ return this.getEndpoint('server');

@@ -23,5 +23,3 @@ 'use strict';

const fullUrl = new URL(uri, this.baseUrl);
return this.request(fullUrl, options);
return this.request(uri, options);
}

@@ -35,8 +33,6 @@

const fullUrl = new URL(uri, this.baseUrl);
return this.request(fullUrl, options);
return this.request(uri, options);
}
request (fullUrl, options) {
request (url, options) {
const defaults = {

@@ -49,3 +45,5 @@ headers: {

return got(fullUrl, {
url = new URL(url, this.baseUrl);
return got(url, {
...defaults,

@@ -52,0 +50,0 @@ options,

{
"name": "glesys-api",
"version": "4.0.1",
"version": "4.1.0",
"description": "Node.js wrapper for the GleSYS API.",

@@ -5,0 +5,0 @@ "main": "lib/glesys.js",

@@ -71,4 +71,13 @@ # glesys-api

### country
* [`GleSYSAPI.country.list()`](https://github.com/glesys/API/wiki/API-Documentation#countrylist)
### customer
* [`GleSYSAPI.customer.contactInfo()`](https://github.com/GleSYS/API/wiki/API-Documentation#customercontactinfo)
* [`GleSYSAPI.customer.createProject()`](https://github.com/glesys/API/wiki/API-Documentation#customercreateproject)
* [`GleSYSAPI.customer.editCollaborator()`](https://github.com/glesys/API/wiki/API-Documentation#customereditcollaborator)
* [`GleSYSAPI.customer.listCollaborators()`](https://github.com/glesys/API/wiki/API-Documentation#customerlistcollaborators)
* [`GleSYSAPI.customer.listProjects()`](https://github.com/glesys/API/wiki/API-Documentation#customerlistprojects)
* [`GleSYSAPI.customer.removeCollaborator()`](https://github.com/glesys/API/wiki/API-Documentation#customerremovecollaborator)
* [`GleSYSAPI.customer.settings()`](https://github.com/glesys/API/wiki/API-Documentation#customersettings)

@@ -107,2 +116,11 @@ ### domain

### fileStorage
* [`GleSYSAPI.fileStorage.createVolume()`](https://github.com/glesys/API/wiki/API-Documentation#filestoragecreatevolume)
* [`GleSYSAPI.fileStorage.editVolume()`](https://github.com/glesys/API/wiki/API-Documentation#filestorageeditvolume)
* [`GleSYSAPI.fileStorage.deleteVolume()`](https://github.com/glesys/API/wiki/API-Documentation#filestoragedeletevolume)
* [`GleSYSAPI.fileStorage.listPlans()`](https://github.com/glesys/API/wiki/API-Documentation#filestoragelistplans)
* [`GleSYSAPI.fileStorage.listVolumes()`](https://github.com/glesys/API/wiki/API-Documentation#filestoragelistvolumes)
* [`GleSYSAPI.fileStorage.resourceUsage()`](https://github.com/glesys/API/wiki/API-Documentation#filestorageresourceusage)
* [`GleSYSAPI.fileStorage.volumeDetails()`](https://github.com/glesys/API/wiki/API-Documentation#filestoragevolumedetails
### invoice

@@ -141,2 +159,3 @@ * [`GleSYSAPI.invoice.allowedArguments()`](https://github.com/GleSYS/API/wiki/API-Documentation#invoiceallowedarguments)

* [`GleSYSAPI.loadBalancer.addTarget()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalanceraddtarget)
* [`GleSYSAPI.loadBalancer.addToBlacklist()`](https://github.com/glesys/API/wiki/API-Documentation#loadbalanceraddtoblacklist)
* [`GleSYSAPI.loadBalancer.create()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancercreate)

@@ -151,2 +170,3 @@ * [`GleSYSAPI.loadBalancer.destroy()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerdestroy)

* [`GleSYSAPI.loadBalancer.enableTarget()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerenabletarget)
* [`GleSYSAPI.loadBalancer.errors()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancererrors)
* [`GleSYSAPI.loadBalancer.list()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerlist)

@@ -156,5 +176,19 @@ * [`GleSYSAPI.loadBalancer.listCertificate()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerlistcertificate)

* [`GleSYSAPI.loadBalancer.removeCertificate()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerremovecertificate)
* [`GleSYSAPI.loadBalancer.removeFromBlacklist()`](https://github.com/glesys/API/wiki/API-Documentation#loadbalancerremovefromblacklist)
* [`GleSYSAPI.loadBalancer.removeFrontEnd()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerremovefrontend)
* [`GleSYSAPI.loadBalancer.removeTarget()`](https://github.com/GleSYS/API/wiki/API-Documentation#loadbalancerremovetarget)
### network
* [`GleSYSAPI.network.create()`](https://github.com/glesys/API/wiki/API-Documentation#networkcreate)
* [`GleSYSAPI.network.delete()`](https://github.com/glesys/API/wiki/API-Documentation#networkdelete)
* [`GleSYSAPI.network.details()`](https://github.com/glesys/API/wiki/API-Documentation#networkdetails)
* [`GleSYSAPI.network.edit()`](https://github.com/glesys/API/wiki/API-Documentation#networkedit)
* [`GleSYSAPI.network.list()`](https://github.com/glesys/API/wiki/API-Documentation#networklist)
### networkAdapter
* [`GleSYSAPI.networkAdapter.create()`](https://github.com/glesys/API/wiki/API-Documentation#networkadaptercreate)
* [`GleSYSAPI.networkAdapter.delete()`](https://github.com/glesys/API/wiki/API-Documentation#networkadapterdelete)
* [`GleSYSAPI.networkAdapter.details()`](https://github.com/glesys/API/wiki/API-Documentation#networkadapterdetails)
* [`GleSYSAPI.networkAdapter.edit()`](https://github.com/glesys/API/wiki/API-Documentation#networkadapteredit)
### paymentCard

@@ -167,2 +201,6 @@ * [`GleSYSAPI.paymentCard.add()`](https://github.com/GleSYS/API/wiki/API-Documentation#paymentcardadd)

### project
* [`GleSYSAPI.project.delete()`](https://github.com/glesys/API/wiki/API-Documentation#projectdelete)
* [`GleSYSAPI.project.rename()`](https://github.com/glesys/API/wiki/API-Documentation#projectrename)
### server

@@ -183,2 +221,3 @@ * [`GleSYSAPI.server.addISO()`](https://github.com/GleSYS/API/wiki/API-Documentation#serveraddiso)

* [`GleSYSAPI.server.mountISO()`](https://github.com/GleSYS/API/wiki/API-Documentation#servermountiso)
* [`GleSYSAPI.server.networkAdapters()`](https://github.com/glesys/API/wiki/API-Documentation#servernetworkadapters)
* [`GleSYSAPI.server.reboot()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverreboot)

@@ -206,2 +245,4 @@ * [`GleSYSAPI.server.resetLimit()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverresetlimit)

* [`GleSYSAPI.user.changePassword()`](https://github.com/GleSYS/API/wiki/API-Documentation#userchangepassword)
* [`GleSYSAPI.user.confirm()`](https://github.com/GleSYS/API/wiki/API-Documentation#userconfirm)
* [`GleSYSAPI.user.createOrganization()`](https://github.com/glesys/API/wiki/API-Documentation#usercreateorganization)
* [`GleSYSAPI.user.details()`](https://github.com/GleSYS/API/wiki/API-Documentation#userdetails)

@@ -211,4 +252,7 @@ * [`GleSYSAPI.user.disableTwoFactor()`](https://github.com/GleSYS/API/wiki/API-Documentation#userdisabletwofactor)

* [`GleSYSAPI.user.enableTwoFactor()`](https://github.com/GleSYS/API/wiki/API-Documentation#userenabletwofactor)
* [`GleSYSAPI.user.listOrganizations()`](https://github.com/glesys/API/wiki/API-Documentation#userlistorganizations)
* [`GleSYSAPI.user.login()`](https://github.com/GleSYS/API/wiki/API-Documentation#userlogin)
* [`GleSYSAPI.user.logout()`](https://github.com/GleSYS/API/wiki/API-Documentation#userlogout)
* [`GleSYSAPI.user.searchData()`](https://github.com/GleSYS/API/wiki/API-Documentation#usersearchdata)
* [`GleSYSAPI.user.signUp()`](https://github.com/GleSYS/API/wiki/API-Documentation#usersignup)

@@ -221,2 +265,2 @@ ### vpn

For more information about the GleSYS API, available arguments etc., please see the [GleSYS API documentation](https://github.com/GleSYS/API/wiki/Full-API-Documentation).
For more information about the GleSYS API, available arguments etc., please see the [GleSYS API documentation](https://github.com/glesys/API/wiki/API-Documentation).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc