Minimal client to access the Notion API (Beta).
Get the development version from github with:
# install.packages("devtools")
devtools::install_github("dmolitor/notionr")
The Notion API is under rapid development and this package isn't. It currently covers ~75% of the API functionality,
but none of the PATCH
or DELETE
methods have been implemented. Additionally, since the API is in beta, some changes
in its functionality may break existing functionality in this package. However, this should provide a solid base of
functionality that can easily be extended and improved on.
notionr
To start the OAuth flow to verify to Notion that you would like the notionr integration to have access to your workspace:
``` r notion_auth()
```
Then, access the authorization token:
```r key <- cached_access_code() key
``` - Internal Integration
Alternatively, if you want to create an internal integration, go to your integrations and create a new internal integration. From within the integration dashboard you can copy your authorization token and store it as desired.
Public Integration
notionr is not yet set up to accomodate a public integration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.