View Source Notion.Client behaviour (ElixirNotionAPI v0.2.0)

Defines a custom client for making calls to Notion API.

Link to this section Summary

Callbacks

Return value is passed directly to caller of generated Web API module/functions. Can be any term.

Link to this section Types

@type body() :: form_body() | multipart_form_body()
@type form_body() :: {:form, Keyword.t()}
@type headers() :: List.t()
@type multipart_form_body() :: {:multipart, [tuple(), ...]}
@type url() :: String.t()

Link to this section Callbacks

@callback delete!(url :: url(), headers :: headers()) :: term()

Return value is passed directly to caller of generated Web API module/functions. Can be any term.

@callback get!(url :: url(), headers :: headers()) :: term()
Link to this callback

patch!(url, headers, body)

View Source
@callback patch!(url :: url(), headers :: headers(), body :: body()) :: term()
Link to this callback

post!(url, headers, body)

View Source
@callback post!(url :: url(), headers :: headers(), body :: body()) :: term()