The goal of Rnotion is to bridge R to Notion’s beta API through R-friendly functions. Behind the scene, Rnotion has utilized the power of packages like httr and jsonlite for connectivity, and simulated json-API object using vctrs.
Disclaimers: I’ve nothing to do with notion team at all. The packages has been built just for the sake of learning.
I aim to do things step by step:
- Build S3 vectors for each object used in GET and POST in each API - e.g. filter_object, sort_object
- Build primitive API-connected functions to interact with Notion
- Build content extraction functions to translate the response in a user friendly ways
- Build a easy to user wrapper function
Nope | Under Construction | Somewhat finish | Wrapper fn available |
---|---|---|---|
Retrieve a user | |||
You can install the released version of Rnotion from CRAN with:
# Not Yet
# install.packages("Rnotion")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("Songyosr/Rnotion")
This is a basic example which shows you how to solve a common problem: