mariosimao / notion-sdk-php

A complete Notion SDK for PHP developers.
https://mariosimao.github.io/notion-sdk-php/
MIT License
150 stars 24 forks source link

[FEATURE] Include the property name / title in the metadata? #372

Closed Pr4w closed 2 months ago

Pr4w commented 4 months ago

Hi,

I'm facing an issue where I'm looking for page properties using their ID. However when I obtain that property, I can't access it's name or title.

Would it be possible to include the property's name in the metadata?

Typical use case:

Currently this won't work since you can only add a filter by property name, not by ID.

The only alternative is looping through all the properties manually and creating an array which includes the property metadata and property name.

mariosimao commented 2 months ago

Hello @Pr4w. I'm sorry for not getting back to you sooner.

Unfortunately, this is not possible because the Notion API does not return the property name on the retrieve a page property endpoint.

Looping the page properties is currently the only way.