fetch method

Retrieve the page with id.

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

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);
}