<commit_before># klarna-nodejs [![NPM version](https://img.shields.io/npm/v/klarna-nodejs.svg)](https://www.npmjs.com/package/klarna-nodejs) [![Build Status](https://img.shields.io/travis/anton-johansson/klarna-nodejs.svg)](https://travis-ci.org/anton-johansson/klarna-nodejs) [![Coverage](https://img.shields.io/coveralls/anton-johansson/klarna-nodejs.svg)](https://coveralls.io/r/anton-johansson/klarna-nodejs) ![Dependencies](https://img.shields.io/david/anton-johansson/klarna-nodejs.svg)

> A simple wrapper around [Klarnas](http://www.klarna.com/) XMLRPC API, written in nodejs.


## Where can I find releases?
You can pull them from npm:

```json
{
  "dependencies": {
    "klarna-nodejs": "1.0.0"
  }
}
```

## Usage

See examples [here](examples/).


## License

Apache License © <NAME><commit_msg>Improved README.md<commit_after># klarna-nodejs [![NPM version](https://img.shields.io/npm/v/klarna-nodejs.svg)](https://www.npmjs.com/package/klarna-nodejs) [![Build Status](https://img.shields.io/travis/anton-johansson/klarna-nodejs.svg)](https://travis-ci.org/anton-johansson/klarna-nodejs) [![Coverage](https://img.shields.io/coveralls/anton-johansson/klarna-nodejs.svg)](https://coveralls.io/r/anton-johansson/klarna-nodejs) ![Dependencies](https://img.shields.io/david/anton-johansson/klarna-nodejs.svg)

> A simple wrapper around [Klarnas](http://www.klarna.com/) XMLRPC API, written in nodejs.


## Install

```
$ npm install --save klarna-nodejs
```


## Usage

```js
var Klarna = require('klarna-nodejs');

var configuration =
{
	eid: 1,
	sharedSecret: '...',
	address: 'https://payment.testdrive.klarna.com:443'
};

var klarna = new Klarna(configuration);
```


## API

### .getAddresses(number, callback)

Gets the addresses for given social security number or organization number.

#### number

Type: `string`

The social security or organization number.

#### callback(error, addresses)

Type: `function`

##### addresses

Type: `array`

The found addresses.


## Examples

See examples [here](examples/).


## License

Apache License © [<NAME>](http://github.com/anton-johansson)
{'fraction_non_alphanumeric': 0.1861018562589243, 'fraction_numerical': 0.0033317467872441696, 'mean_word_length': 4.743169398907104, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 15, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3450321', 'n_tokens_mistral': 811, 'n_tokens_neox': 760, 'n_words': 123}