As of June 1st, the Notion API requires an additional version parameter in the HTTP header starting with new integrations. Old integrations will still work with our v0.3.0 for some time, but you should consider updating soon. For more information, visit Notions documentation.
Notion::setToken() has now a »deprecated« flag for usage outside of the Notion class due to the new constructor and the changed version requirements. The methods visibility will be set to private in the next release (0.4.0). The Token should be stored in the projects
.env file or must be provided via the constructor if the Facade is not used (not recommended).
If you upgrade from this version, no changes are required.
If you upgrade from one of these older versions, please consider the upgrade guides / changelogs from the version upgrades.