# ngx-snelstart-b2b-client

> Angular library for connecting with the SnelStart B2B-Api

Latest version **0.0.4** (published 2017-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install ngx-snelstart-b2b-client
pnpm add ngx-snelstart-b2b-client
yarn add ngx-snelstart-b2b-client
bun add ngx-snelstart-b2b-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-10-19 |
| First published | 2017-10-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jvanrossum@snelstart.nl |
| Maintainers | jvanrossum-snelstart |

## Links

- npm: https://www.npmjs.com/package/ngx-snelstart-b2b-client
- Repository: https://github.com/jvanrossum/ngx-snelstart-b2b-client
- Homepage: https://github.com/jvanrossum/ngx-snelstart-b2b-client#readme
- Issues: https://github.com/jvanrossum/ngx-snelstart-b2b-client/issues
- npm.io page: https://npm.io/package/ngx-snelstart-b2b-client

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.19.1

## Recent versions

- 0.0.4 (latest) — 2017-10-19
- 0.0.3 — 2017-10-19
- 0.0.2 — 2017-10-19
- 0.0.1 — 2017-10-19

## README

Angular library for connecting with the [SnelStart B2B API](https://b2bapi-developer.snelstart.nl/).

## Usage
1. Add to your project
```bash
$ npm install ngx-snelstart-b2b-client --save
```
2. Add to the imports of your root (app) module:
```
imports: [
    ...
    B2bClientModule.forRoot(),
    ...
]
```
3. Inject the service:
```
private client: B2bClientService
```
4. Configure:
```
let config = new B2bConfig(this.subscriptionKey, this.koppelSleutel);
this.client = new B2bClientService(config);
```
Get your subscription key by applying for the [SnelStart B2B API](https://b2bapi-developer.snelstart.nl/).
Remember! Your subscription key is a secret, so make sure you're not storing this in a public place. Ideally you are running this web application server side with [Angular Universal](https://universal.angular.io/).
5. Authorize koppelingSleutels:
```
this.client.authorize()
    .subscribe(() => {});
```
6. Start using:
```
this.relaties = this.client.get("/relaties")
    .map((res: Response) => res.json())
```

---
_Source: https://npm.io/package/ngx-snelstart-b2b-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
