fetch method

Retrieve the database with id.

See more at https://developers.notion.com/reference/get-database

Implementation

Future<NotionResponse> fetch(String id) async {
  http.Response res =
      await http.get(Uri.https(host, '/$v/$path/$id'), headers: {
    'Authorization': 'Bearer $token',
    'Notion-Version': dateVersion,
  });

  return NotionResponse.fromResponse(res);
}