Exact.Steps (exact_online v0.1.0)

Copy Markdown View Source

The Req steps that turn a plain request into an Exact Online request.

Attached by Exact.Client.new/1; you only need this module if you are building a Req.Request by hand.

  • a request step that sets the bearer token, refreshing it first when it is about to expire
  • a response step that refreshes once and retries on a 401
  • a response step that unwraps the d envelope and decodes .NET dates
  • a response step that turns any non-2xx response into an Exact.Error

Summary

Functions

Attaches every Exact Online step to request.

Functions

attach(request)

@spec attach(Req.Request.t()) :: Req.Request.t()

Attaches every Exact Online step to request.