Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/eyrmedical/storebrand
- Owner: eyrmedical
- License: mit
- Created: 2017-04-13T13:33:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T16:26:26.000Z (almost 7 years ago)
- Last Synced: 2024-04-14T16:54:56.255Z (7 months ago)
- Topics: elixir, rest-api, storebrand, wrapper
- Language: Elixir
- Size: 82 KB
- Stars: 0
- Watchers: 20
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**