@jesseditson/dnsimple
Version:
A Node.JS client for the DNSimple API.
23 lines (22 loc) • 670 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Accounts = void 0;
class Accounts {
constructor(_client) {
this._client = _client;
/**
* Lists the accounts the current authenticated entity has access to.
*
* GET /accounts
*
* @see https://developer.dnsimple.com/v2/accounts/#listAccounts
*
* @param params Query parameters
*/
this.listAccounts = (() => {
const method = (params = {}) => this._client.request("GET", `/accounts`, null, params);
return method;
})();
}
}
exports.Accounts = Accounts;
;