@notionhq/client
Version:
A simple and easy to use client for the Notion API
36 lines • 779 B
JavaScript
;
// cspell:disable-file
// Note: This is a generated file. DO NOT EDIT!
Object.defineProperty(exports, "__esModule", { value: true });
exports.listUsers = exports.getUser = exports.getSelf = void 0;
/**
* Retrieve your token's bot user
*/
exports.getSelf = {
method: "get",
pathParams: [],
queryParams: [],
bodyParams: [],
path: () => `users/me`,
};
/**
* Retrieve a user
*/
exports.getUser = {
method: "get",
pathParams: ["user_id"],
queryParams: [],
bodyParams: [],
path: (p) => `users/${p.user_id}`,
};
/**
* List all users
*/
exports.listUsers = {
method: "get",
pathParams: [],
queryParams: ["start_cursor", "page_size"],
bodyParams: [],
path: () => `users`,
};
//# sourceMappingURL=users.js.map