notion icon indicating copy to clipboard operation
notion copied to clipboard

noppefoxwolf/notion is a notion.so API library written in swift.

notion

noppefoxwolf/notion is a notion.so API library written in swift.

Required

  • Swift 5.5 (v0.2+)
  • Swift 5.3 (v0.1+)

Installation

Xcode

Project > Swift Packages

[email protected]:noppefoxwolf/notion.git

Swift Package Manager

Append following line to Package.swift.

dependencies: [
    .package(url: "https://github.com/noppefoxwolf/notion", from: "0.1.0")
]

Usage

import notion

let session = Session.shared
session.setAuthorization(token: "<<AUTHORIZE TOKEN>>")
let users = try await session.send(V1.Users.List())

Support features

integration

  • [x] internal integration
  • [ ] public integration

user

  • [x] List all users
  • [x] Retrieve a user

search

  • [x] Search

block

  • [x] Retrieve block children
  • [x] Append block children

page

  • [x] Update page properties
  • [x] Create a page
  • [x] Retrieve a page

database

~~List databases~~ deprecated

  • [x] Query a database
  • [x] Retrieve a database

API Documents

Start building with the Notion API

Author

noppe