Skip to content

Flix-29/NotionApiClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotionApiClient

This is a simple API client for Notion.so. It is based on the official Notion API documentation.

How to use

First, you need to create a Notion integration.

  1. Go to the Notion integrations page.
  2. Click on the + New integration button.
  3. Fill in the required fields and click on the Submit button.
  4. Copy the Internal Integration Token and save it in a safe place.
  5. Share the integration with your workspace and add it to the Sites or Databases you want the Api to have access to.

After you have created your integration, you can import the NotionApiClient via Maven or Gradle.

Maven

<dependency>
    <groupId>de.flix29</groupId>
    <artifactId>notion-api-client</artifactId>
    <version>1.1.0</version>
</dependency>

Gradle

implementation 'de.flix29:notion-api-client:1.1.0'

Usage

You need to create a NotionClient object and pass the Internal Integration Token to the constructor.

import de.flix29.notionApiClient.NotionClient;

NotionClient notionClient = new NotionClient("your-token");

Then, you can use the methods provided in the NotionClient class to interact with the Notion API.

Supported Endpoints

Currently, mainly the Get endpoints are supported. These are the following:

Database

Pages

Blocks

Users

About

A simple java client to interact with the Notion Api

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages