| UsersEndpoint | R Documentation |
Handle all users operations in the Notion API
Note: Access this endpoint through the client instance, e.g., notion$users. Not to be instantiated directly.
A list containing the parsed API response.
new()Initialise users endpoint.
Not to be called directly, e.g., use notion$users instead.
UsersEndpoint$new(client)
clientNotion Client instance
list()List all users
UsersEndpoint$list(start_cursor = NULL, page_size = NULL)
start_cursorCharacter. For pagination. If provided, returns results starting from this cursor. If NULL, returns the first page of results.
page_sizeInteger. Number of items to return per page (1-100). Defaults to 100.
retrieve()Retrieve a user
UsersEndpoint$retrieve(user_id)
user_idCharacter (required). The ID of the user to retrieve.
me()Retrieve the bot User associated with the API token
UsersEndpoint$me()
notion <- notion_client()
# ----- List all users
notion$users$list()
# ----- Retrieve a user
notion$users$retrieve("fda12729-108d-4eb5-bbfb-a8f0886794d1")
# ----- Retrieve the bot User associated with the API token
notion$users$me()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.