@shipengine/connect
Version:
The official developer tooling for building ShipEngine connect apps
21 lines • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Users {
client;
constructor(apiClient) {
this.client = apiClient;
}
/**
* Gets the current user for the given API key.
* @returns {Promise<AppUser>} Promise that resolves to an AppUser.
*/
async getCurrent() {
const response = await this.client.call({
endpoint: 'diagnostics/whoami',
method: 'GET',
});
return response;
}
}
exports.default = Users;
//# sourceMappingURL=users.js.map