Skip to content

Conversation

johguentner
Copy link
Member

  • Added Modifiable contract to set-able properties
  • implement notion block types as classes
  • add url to page
  • implemented tests for blocks-endpoint
  • final tweaks and tests

johguentner and others added 13 commits June 26, 2021 23:13
- add easy content and text access for rich-text- (all supported blocks, exept page-blocks) and child-page-blocks
- add fromResponse- and mapTypeToClass-method to Block::class (similar to the implementations within Property::class)
Added Shorthand to access all pages possible via search endpoint
check if correct instance is added to collection (depending on block type)
check if content of blocks is correctly retreived
- url is now retreived in the endpoint "->pages()->find($pageId)"
- url can now be read by the user in a straightforward way

[added to notion-api at 2021-07-02]
[https://developers.notion.com/changelog/page-objects-now-return-url]
- $value is different for each property
- the empty Interface should be sufficient for checking, if the property is modifiable
- small refactoring was necessary to clarify, that this 'filling' represents the actual page-url of the notion-page and is not a fillable property of a page
- for HeadingOne, HeadingTwo and HeadingThree
implement notion block types as classes
@johguentner johguentner merged commit 11c11e1 into main Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants