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