Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgfr/api-money-node-sdk
Un-official node sdk for api-money.com
https://github.com/maxgfr/api-money-node-sdk
api-money api-money-node-sdk js library nodejs
Last synced: 7 days ago
JSON representation
Un-official node sdk for api-money.com
- Host: GitHub
- URL: https://github.com/maxgfr/api-money-node-sdk
- Owner: maxgfr
- Created: 2020-07-02T17:44:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T04:19:24.000Z (6 months ago)
- Last Synced: 2024-05-22T05:27:19.137Z (6 months ago)
- Topics: api-money, api-money-node-sdk, js, library, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/api-money-node-sdk
- Size: 216 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# api-money-node-sdk
Un-official node sdk for [api-money.com](https://www.api-money.com/docs)
## Install
```sh
$ npm install api-money-node-sdk
```## Usage
```ts
const { ApiMoney } = require('api-money-node-sdk')const client = new ApiMoney({
secretKey: 'your_secret_key',
accessKey: 'your_access_key',
mode: 'dev', // or 'prod'
version: 1,
})client
.request('POST', '/accounts/standard', {
subscriber: {
lastname: 'Gfr',
firstname: 'Max',
birthdate: '1998-01-01',
birth_country: 'FRA',
birth_city: 'Paris',
nationality: 'FRA',
citizen_us: false,
fiscal_us: false,
fiscal_out_france: false,
},
address: {
label1: 'Place de la Concorde',
zip_code: '75008',
city: 'Paris',
country: 'FRA',
},
email: '[email protected]',
})
.then((response) => {
console.log(response)
})
.catch((error) => {
console.log(error)
})
```