NotionElixir.Response (notion_elixir v0.1.2) View Source

API Response struct representing a single object.

Link to this section Summary

Functions

Build a response or list response object from a raw client response.

Link to this section Types

Specs

t() :: %NotionElixir.Response{
  body: map(),
  has_more: boolean(),
  headers: Keyword.t(),
  success: boolean()
}

Link to this section Functions

Specs

build(%{body: map(), headers: Keyword.t()}) ::
  t() | NotionElixir.ListResponse.t()

Build a response or list response object from a raw client response.