<commit_before># SPIKE REST API for Node.js
An asynchronous client library for the SPIKE REST API.

[![Build Status](http://img.shields.io/travis/ynakajima/node-spike-api/master.svg?style=flat)](http://travis-ci.org/ynakajima/png2psd) [![Code Climate](http://img.shields.io/codeclimate/github/ynakajima/node-spike-api.svg?style=flat)](https://codeclimate.com/github/ynakajima/png2psd) [![npm version](http://img.shields.io/npm/v/spike-api.svg?style=flat)](https://www.npmjs.org/package/png2psd) ![dependencies](http://img.shields.io/david/ynakajima/spike-api.svg?style=flat) [![license MIT](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/ynakajima/node-spike-api/blob/master/LICENSE)

```javascript
var SpikeAPI = require('spike-api').SpikeAPI;

var client = new SpikeAPI({
  secretKey: 'YOUR_SECRET_KEY'
});

client.getChargeList(function(err, result) {
  if (!err) {
    console.log(result);
  }
});
```

## Installation

`npm install spike-api`


## Post a new Charge
``POST https://api.spike.cc/v1/charges``

```javascript
// product data<commit_msg>Fix Code Climate URL.<commit_after># SPIKE REST API for Node.js
An asynchronous client library for the SPIKE REST API.

[![Build Status](http://img.shields.io/travis/ynakajima/node-spike-api/master.svg?style=flat)](http://travis-ci.org/ynakajima/png2psd) [![Code Climate](http://img.shields.io/codeclimate/github/ynakajima/node-spike-api.svg?style=flat)](https://codeclimate.com/github/ynakajima/node-spike-api) [![npm version](http://img.shields.io/npm/v/spike-api.svg?style=flat)](https://www.npmjs.org/package/png2psd) ![dependencies](http://img.shields.io/david/ynakajima/spike-api.svg?style=flat) [![license MIT](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/ynakajima/node-spike-api/blob/master/LICENSE)

```javascript
var SpikeAPI = require('spike-api').SpikeAPI;

var client = new SpikeAPI({
  secretKey: 'YOUR_SECRET_KEY'
});

client.getChargeList(function(err, result) {
  if (!err) {
    console.log(result);
  }
});
```

* hoge
 * #fuge

## Installation

`npm install spike-api`


## Post a new Charge
``POST https://api.spike.cc/v1/charges``

```javascript
// product data
{'fraction_non_alphanumeric': 0.19021739130434784, 'fraction_numerical': 0.003170289855072464, 'mean_word_length': 5.153203342618385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '1131093', 'n_tokens_mistral': 887, 'n_tokens_neox': 831, 'n_words': 108}