Skip to content

Upgrade to Model based API #48

@lastorel

Description

@lastorel

It will be more userfriendly when you can call API methods directly from any Model object. Example:

from pytion import Notion
no = Notion()
block_array = no.blocks.get_block_children_recursive("xxxx")
block_array[12].delete()
block_array[14].update(text="Changed!")
block_array[0].parent.update(title="New Page Title")

I think it will be version v2.0.0 with v1.3 code support

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions