View Source Notionex.API.Client behaviour (notionex v0.3.0)

Summary

Callbacks

Link to this callback

request(%Notionex.API.Request{}, keyword)

View Source
@callback request(
  %Notionex.API.Request{
    body: term(),
    headers: term(),
    method: term(),
    params: term(),
    url: term()
  },
  keyword()
) :: {:ok, any()} | {:error, any()}
Link to this callback

request!(%Notionex.API.Request{}, keyword)

View Source
@callback request!(
  %Notionex.API.Request{
    body: term(),
    headers: term(),
    method: term(),
    params: term(),
    url: term()
  },
  keyword()
) :: any()