Skip to content

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

Notifications You must be signed in to change notification settings

noppefoxwolf/notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • internal integration
  • public integration

user

  • List all users
  • Retrieve a user

search

  • Search

block

  • Retrieve block children
  • Append block children

page

  • Update page properties
  • Create a page
  • Retrieve a page

database

List databases deprecated

  • Query a database
  • Retrieve a database

API Documents

Start building with the Notion API

Author

noppe