Exemplo n.º 1
0
 def get_databases(
     self,
     *,
     notion_version: Header("Notion-Version") = None,
     start_cursor: Query("start_cursor") = None,
     page_size: Query("page_size") = None,
 ):
     """Retrieve all databases."""
Exemplo n.º 2
0
 def get_user(
     self,
     *,
     user_id: Path,
     notion_version: Header("Notion-Version"),
     start_cursor: Query("start_cursor") = None,
     page_size: Query("page_size") = None,
 ):
     """Retrieve a user by user_id."""
Exemplo n.º 3
0
 def create_page(self, *, notion_version: Header("Notion-Version"),
                 **page: Body):
     """Create a page"""
Exemplo n.º 4
0
 def get_page(self, *, page_id: Path,
              notion_version: Header("Notion-Version")):
     """Retrieve a page by page_id"""
Exemplo n.º 5
0
 def get_users(self, *, notion_version: Header("Notion-Version") = None):
     """Retrieve all users."""
Exemplo n.º 6
0
 def get_database(self, database_id: Path,
                  notion_version: Header("Notion-Version")):
     """Fetch a database by database_id"""
Exemplo n.º 7
0
 def get_auctions_if_modified_since(
     self, connectedRealmId: int,
     if_modified_since: Header("If-Modified-Since")):
     """Returns all active auctions for a connected realm if modified since given date."""