NotionPagesClient class

A client for Notion API pages requests.

Inheritance

Constructors

NotionPagesClient({required String token, String version = latestVersion, String dateVersion = latestDateVersion})
Main Notion page client constructor.

Properties

dateVersion String
The API date version.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
path String
The path of the requests group.
finalgetter/setter pairinherited-setteroverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The API integration secret token.
getter/setter pairinherited
v String
The API version.
getter/setter pairinherited

Methods

create(Page page) Future<NotionResponse>
Create a new page.
fetch(String id) Future<NotionResponse>
Retrieve the page with id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(String id, {Properties? properties, bool? archived}) Future<NotionResponse>
Update the properties of the page with an specified id. Can also mark the page as archived.

Operators

operator ==(Object other) bool
The equality operator.
inherited