notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
181 stars 44 forks source link

Add support for `public_url` on Page and Database object #372

Closed KoditkarVedant closed 11 months ago

KoditkarVedant commented 11 months ago

The new public_url property was added to the docs. When a page or database has been shared publicly, the response body will include a public_url value.

{
  "object": "page",
  "id": "<id>",
  "created_time": "2023-06-02T19:54:00.000Z",
  "last_edited_time": "2023-06-02T23:04:00.000Z",
  "created_by": { ... },
  "last_edited_by": { ... },
  "cover": null,
  "icon": null,
  "parent": { ... },
  "archived": false,
  "properties": { ... },
  "url": "<url>",
  "public_url": "<public-url>"
} 

Notion Changelog: https://developers.notion.com/page/changelog#june-13---july-10-2023