@jesseditson/dnsimple
Version:
A Node.JS client for the DNSimple API.
22 lines (21 loc) • 595 B
TypeScript
import type { DNSimple, QueryParams } from "./main";
import type * as types from "./types";
export declare class Identity {
private readonly _client;
constructor(_client: DNSimple);
/**
* 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
*/
whoami: (params?: QueryParams & {}) => Promise<{
data: {
account: types.Account;
user: types.User;
};
}>;
}