View Source ThinNotionApi.Users (thin_notion_api v1.0.1)
This module contains functions to interact and modify Notion users.
Link to this section Summary
Functions
Returns a paginated list of Users for the workspace. The response may contain fewer than page_size of results.
Retrieves a User using the ID specified.
Retrieves the bot User associated with the API token provided in the authorization header. The bot will have an owner field with information about the person who authorized the integration.
Link to this section Functions
@spec list_all_users(ThinNotionApi.Types.PaginationParams.t() | %{}) :: ThinNotionApi.Types.Response.t()
Returns a paginated list of Users for the workspace. The response may contain fewer than page_size of results.
See Pagination for details about how to use a cursor to iterate through the list.
examples
Examples
iex> ThinNotionApi.Users.list_all_users(params)
{:ok, %{...}}
@spec retrieve_user(String.t()) :: ThinNotionApi.Types.Response.t()
Retrieves a User using the ID specified.
examples
Examples
iex> ThinNotionApi.Users.retrieve_user("12345")
{:ok, %{...}}
@spec retrieve_user_bot() :: ThinNotionApi.Types.Response.t()
Retrieves the bot User associated with the API token provided in the authorization header. The bot will have an owner field with information about the person who authorized the integration.
examples
Examples
iex> ThinNotionApi.Users.retrieve_user_bot()
{:ok, %{...}}