Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eyrmedical/storebrand

Storebrand REST API wrapper to check client policies.
https://github.com/eyrmedical/storebrand

elixir rest-api storebrand wrapper

Last synced: 8 days ago
JSON representation

Storebrand REST API wrapper to check client policies.

Awesome Lists containing this project

README

        

# Storebrand

A simple wrapper for Storebrand REST API.

## Installation

Package can be installed by adding `storebrand` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:storebrand, "~> 0.1"}]
end
```

### Config

Copy your push service credentials from Bluemix UI, to application config file:

```
config :storebrand, Storebrand,
url: "https://b2b.storebrand.no/helseapp/fdc"
```

# Usage

Check the `test` folder for usage examples.

## Policies

### Check policy validity
`{:ok, response} = Storebrand.policy_status("XXXXXXXX", [
firstname: "First Name",
lastname: "Last Name",
dateOfBirth: "01.01.1991"
])`

# Disclaimer

**This library was designed for an internal usage**