notion_api 1.0.0-beta1 notion_api: ^1.0.0-beta1 copied to clipboard
A wrapper for public beta of the Notion API to manage like a Notion SDK for dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add notion_api
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
notion_api: ^1.0.0-beta1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:notion_api/notion.dart';
import 'package:notion_api/notion/blocks/block.dart';
import 'package:notion_api/notion/blocks/heading.dart';
import 'package:notion_api/notion/blocks/paragraph.dart';
import 'package:notion_api/notion/blocks/todo.dart';
import 'package:notion_api/notion/general/base_properties.dart';
import 'package:notion_api/notion/general/property.dart';
import 'package:notion_api/notion/general/rich_text.dart';
import 'package:notion_api/notion/general/types/notion_types.dart';
import 'package:notion_api/notion/objects/children.dart';
import 'package:notion_api/notion/objects/database.dart';
import 'package:notion_api/notion/objects/pages.dart';
import 'package:notion_api/notion_blocks.dart';
import 'package:notion_api/notion_databases.dart';
import 'package:notion_api/notion_pages.dart';
import 'package:notion_api/responses/notion_response.dart';
import 'package:notion_api/responses/pagination.dart';
import 'package:notion_api/statics.dart';
import 'package:notion_api/utils/utils.dart';