| ViewsQueriesEndpoint | R Documentation |
Handle all views queries operations in the Notion API
Note: Access this endpoint through the client instance, e.g., notion$views$queries. Not to be instantiated directly.
A list containing the parsed API response.
new()Initialise pages properties endpoint.
Not to be called directly, e.g., use notion$views$queries instead.
ViewsQueriesEndpoint$new(client)
clientNotion Client instance
create()Create a view query
ViewsQueriesEndpoint$create(view_id, page_size = NULL)
view_idCharacter (required). The ID of the view.
page_sizeInteger. Number of items to return per page (1-100). Defaults to 100.
results()Get view query results
ViewsQueriesEndpoint$results( view_id, query_id, start_cursor = NULL, page_size = NULL )
view_idCharacter (required). The ID of the view.
query_idCharacter (required). The ID of the query.
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
delete()Delete a view query
ViewsQueriesEndpoint$delete(view_id, query_id)
view_idCharacter (required). The ID of the view.
query_idCharacter (required). The ID of the query.
notion <- notion_client()
# ----- Create a view query
notion$views$queries$create("34033ea0-c1e4-8192-ac14-000cdad096ce")
# ----- Get view query results
notion$views$queries$results(
"34033ea0-c1e4-8192-ac14-000cdad096ce",
"9af03bd1-ed79-4842-a57c-0bc04fb61be2"
)
# ----- Delete a view query
notion$views$queries$delete(
"34033ea0-c1e4-8192-ac14-000cdad096ce",
"9af03bd1-ed79-4842-a57c-0bc04fb61be2"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.