You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5amcode proudly presents its first Laravel specific package - a wrapper for the Notion API!
14
-
This package will provide a simple and crisp way to access the various Notion API endpoints, query data and manipulate
15
-
entries.
16
-
17
-
### Important note!
18
-
19
-
This package is in an early stage and receives continuious improvements. DO NOT USE IN PRODUCTION.
13
+
This package provides a simple and crisp way to access the Notion API endpoints, query data and update existing entries.
20
14
21
15
## Installation
22
16
@@ -26,21 +20,19 @@ You can install the package via composer:
26
20
composer require fiveam-code/laravel-notion-api
27
21
```
28
22
29
-
Get your Notion API access token like explained in [their documentation](https://developers.notion.com/). It's also
30
-
important to grant access to the integration within your Notion pages, which is described in Notions docs as well.
23
+
### Authorization
31
24
32
-
Add a new entry to your `.env` like the following:
25
+
The Notion API requires an access token and a Notion integration, [the Notion documentation](https://developers.notion.com/docs/getting-started#before-we-begin) explains how this works. It's important to grant access to the integration within your Notion account to enable the API access.
26
+
27
+
Add your Notion API token to your `.env` file:
33
28
34
29
```
35
30
NOTION_API_TOKEN="$YOUR_ACCESS_TOKEN"
36
31
```
37
32
38
-
And you're ready to go!
39
-
40
33
## Usage
41
34
42
-
It's too early for a documentation, so we collected some working examples in
0 commit comments