New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

checkbook-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkbook-api - npm Package Compare versions

Comparing version 0.0.1-beta1 to 0.0.1-beta2

docs/BANK.md

10

package.json
{
"name": "checkbook-api",
"version": "0.0.1-beta1",
"version": "0.0.1-beta2",
"description": "Node.js library for the Checkbook API",

@@ -10,3 +10,3 @@ "keywords": [

],
"main": "index.js",
"main": "lib/checkbook.js",
"scripts": {

@@ -30,3 +30,7 @@ "test": "echo \"Error: no tests specified\" && exit 1"

},
"homepage": "https://github.com/CheckbookWeb/checkbook_node#readme"
"homepage": "https://github.com/CheckbookWeb/checkbook_node#readme",
"dependencies": {
"lodash": "^4.17.10",
"request": "^2.87.0"
}
}
# Checkbook.io Node.js Library
The Checkbook.io Node library provides convenient access to the Checkbook.io API from
The [Checkbook.io](https://checkbook.io/) Node library provides convenient access to the [Checkbook.io API](https://checkbook.io/docs/api) from
applications written in server-side JavaScript.
THIS PACKAGE IS UNDER DEVELOPMENT AND IT'S NOT READY TO BE USED IN PRODUCTION YET.
## Installation

@@ -12,2 +10,85 @@

npm install checkbook --save
npm install checkbook-api --save
## Configuration
The package needs to be configured with your account's API Key and API Secret:
``` js
var CheckbookAPI = require('checkbook-api');
var Checkbook = new CheckbookAPI({
api_key: 'd6aa2703655f4ba2af2a56202961ca86',
api_secret: 'dXbCgzYBMibj8ZwuQMd2NXr6rtvjZ8',
env: 'test'
});
```
The ```env``` parameter is optional and can be omitted if the requests are made to the live environment.
The possible values for this parameter are ```test``` or ```sandbox``` and the API credentials need to be from the specified environment.
You can get the API Key and API Secret values from the [Settings](https://checkbook.io/account/settings) page:
![API Key and API Secret](docs/images/API_Keys.png)
## Usage
You can use the following code snippet to send a digital check:
``` js
Checkbook.checks.sendDigitalCheck({
name: 'Widgets Inc.',
recipient: 'widgets@example.com',
description: 'Test Send Check',
amount: 10.00
}, function (error, response) {
if (error) {
console.log('Error:', error);
} else {
console.log(response);
}
});
```
You can use the following code snippet to query the list of checks:
``` js
Checkbook.checks.list({
page: 2,
per_page: 10,
status: 'IN_PROCESS'
}, function (error, response) {
if (error) {
console.log('Error:', error);
} else {
console.log(response);
}
});
```
## Methods reference
The ```Checkbook``` class has several endpoints and you can find the detailed reference for the methods each one provide here:
* [Checkbook.checks](docs/CHECK.md)
* [list()](docs/CHECK.md)
* [sendDigitalCheck()](docs/CHECK.md)
* [Checkbook.invoices](docs/INVOICE.md)
* [list()](docs/INVOICE.md)
* [Checkbook.subscriptions](docs/SUBSCRIPTION.md)
* [Checkbook.banks](docs/BANK.md)
* [Checkbook.users](docs/USER.md)
## Getting help
If you need help installing or using the library, please contact Checkbook.io Support at support@checkbook.io.
If you've instead found a bug in the library or would like new features added, please open issues or pull requests against this repo.
## More Information
* [API Endpoints](https://checkbook.io/docs/api#document-api_endpoints)
* [Error Codes](https://checkbook.io/docs/api#document-error_codes)
* [Idempotency](https://checkbook.io/docs/api#document-idempotent_requests)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc