Visma (Visma v0.1.0)

Visma module is the main interface used to communicate with visma API. It required to have :visma application started and a valid configuration in config/config.exs

Link to this section Summary

Functions

Take a Visma.Signing data-structures and send it to the API, only using Visma.Manager to get a token.

Dispatch a Visma data-structure to Visma.Manager.

Link to this section Functions

Link to this function

deliver(signing)

@spec deliver(Visma.Signing.t()) :: {:ok, any()} | {:error, any()}

Take a Visma.Signing data-structures and send it to the API, only using Visma.Manager to get a token.

@spec dispatch(Visma.Api.t()) :: {:ok, any()} | {:error, any()}

Dispatch a Visma data-structure to Visma.Manager.

examples

Examples

iex> api = Visma.Api.new()
iex> request = Visma.Api.get_signing_templates(api)
iex> Visma.dispatch(request)