logo-with-text-black.svg

Website https://www.tanyaaja.in/
Repo
Author @Maz_Ipan

This is the TanyaAja CMS template, here is the manual steps you need to be done:

🔑 Get the secret key and give the access to the page

  1. Create integration: read https://developers.notion.com/docs/create-a-notion-integration
  2. Get the Secret Key, copy to your .env.local
  3. Add the integration into this page, by clicking the “Three Dots Button”, then go to the “+ Add connections” and click it, find your integration then click it

Screenshot 2023-09-15 at 08.12.36.png

📦 Get the database id

  1. Go to the database in the below, copy the id from the URL, for example this URL: https://www.notion.so/ae52c966306d4590b614a5a44ed9df04?v=33b9e9c25447436cb3edf266cb1dc2f3, then the ID is ae52c966306d4590b614a5a44ed9df04
  2. Do the same for the User DB and the Question DB
  3. Copy the value to your .env.local

📘 Where can I find my page's ID?

Here's a quick procedure to find the page ID for a specific page in Notion:

Open the page in Notion. Use the Share menu to Copy link. Now paste the link in your text editor so you can take a closer look. The URL ends in a page ID.

It should be a 32 character long string. Format this value by inserting hyphens (-) in the following pattern: 8-4-4-4-12 (each number is the length of characters between the hyphens).

Example: 1429989fe8ac4effbc8f57f56486db54 becomes 1429989f-e8ac-4eff-bc8f-57f56486db54.

This value is your page ID.

While this procedure is helpful to try the API, you shouldn't ask users to do this for your integration. It's more common for an integration to receive a page ID by calling the search endpoint.

📚 Available DB Template

These are all the available DB for TanyaAja.in:

User DB