https://github.com/rithingithub/sparrowteam
https://github.com/rithingithub/sparrowteam
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rithingithub/sparrowteam
- Owner: Rithingithub
- Created: 2022-05-02T16:05:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T17:27:53.000Z (about 4 years ago)
- Last Synced: 2025-02-01T19:11:23.187Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SparrowTeam

## [Notion](notion.so)
` Notion API ` is Notion's set of tools and instructions that allow developers to write code that communicates with Notion. Like all other APIs, there is an API reference that developers can use to build their integrations. This reference contains all the commands that developers can use in their code.
Integrations use the API to access Notion's pages, databases, and users. Integrations can connect services to Notion and build interactive experiences for users within Notion. Using the navigation on the left, you'll find details for each endpoint and type of object used in the API.
### notion sdk for js
```
const { Client } = require('@notionhq/client');
const notion = new Client({ auth: process.env.NOTION_API_KEY });
(async () => {
const databaseId = '897e5a76-ae52-4b48-9fdf-e71f5945d1af';
const response = await notion.databases.query({
database_id: databaseId,
filter: {
or: [
{
property: 'In stock',
checkbox: {
equals: true,
},
},
{
property: 'Cost of next trip',
number: {
greater_than_or_equal_to: 2,
},
},
],
},
sorts: [
{
property: 'Last ordered',
direction: 'ascending',
},
],
});
console.log(response);
})();
```
### 🟢200 normal
### 🔴400 error