Skip to content

Conversation

johguentner
Copy link
Member

@johguentner johguentner commented Jul 18, 2021

  • 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

- 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]
@johguentner johguentner requested a review from mechelon July 18, 2021 09:22
private function fillUrl(): void
{
if (Arr::exists($this->responseData, 'url')) {
$this->url = $this->responseData['url'];
Copy link
Member

@mechelon mechelon Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to pageUrl? because this is not a property 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅😊 done

- 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
@johguentner johguentner merged commit 1463c6a into dev Aug 21, 2021
@mechelon mechelon deleted the feature/page-url branch June 17, 2022 15:43
@mechelon mechelon restored the feature/page-url branch June 17, 2022 15:43
@mechelon mechelon deleted the feature/page-url branch June 17, 2022 15:43
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