replicate
Version:
JavaScript client for Replicate
20 lines (17 loc) • 421 B
JavaScript
/**
* Get the current account
*
* @param {object} [options]
* @param {AbortSignal} [options.signal] - An optional AbortSignal
* @returns {Promise<object>} Resolves with the current account
*/
async function getCurrentAccount({ signal } = {}) {
const response = await this.request("/account", {
method: "GET",
signal,
});
return response.json();
}
module.exports = {
current: getCurrentAccount,
};