<commit_before><img src="https://s3.amazonaws.com/owler-image/logo/zenvia-mobile_owler_20170111_192135_original.png" height="200" />

# Zenvia SMS Core for NodeJS
[![NPM](https://nodei.co/npm/@zenvia/zenvia-sms-core.png)](https://nodei.co/npm/@zenvia/zenvia-sms-core/)

[![Build Status](https://travis-ci.org/zenvia/zenvia-sms-core.svg?branch=master)](https://travis-ci.org/zenvia/zenvia-sms-core)
[![Coverage Status](https://coveralls.io/repos/github/zenvia/zenvia-sms-core/badge.svg)](https://coveralls.io/github/zenvia/zenvia-sms-core)

Full and official implementation of Zenvia SMS API, send, monitor status and receive SMS from clients with this module.

##### Full documentation about Zenvia API on http://docs.zenviasms.apiary.io

### Install
`npm install @zenvia/zenvia-sms-core`

### How to create Zenvia SMS Callbacks Server

```javascript
let zcs = require('@zenvia/zenvia-sms-core').callbacksServer;

zcs.startServer(81);

zcs.events.on('event', (data)=>{
    console.log(data);
});
```

### How to use Zenvia SMS API

```javascript
/**
 * Available methods:
 *      setCredentials(account, password) - Set API Credentials<commit_msg>changed to use fury.oi to npm badget<commit_after><img src="https://s3.amazonaws.com/owler-image/logo/zenvia-mobile_owler_20170111_192135_original.png" height="200" />

# Zenvia SMS Core for NodeJS

[![Build Status](https://travis-ci.org/zenvia/zenvia-sms-core.svg?branch=master)](https://travis-ci.org/zenvia/zenvia-sms-core)
[![Coverage Status](https://coveralls.io/repos/github/zenvia/zenvia-sms-core/badge.svg)](https://coveralls.io/github/zenvia/zenvia-sms-core)
[![npm version](https://badge.fury.io/js/%40zenvia%2Fzenvia-sms-core.svg)](https://badge.fury.io/js/%40zenvia%2Fzenvia-sms-core)

Full and official implementation of Zenvia SMS API, send, monitor status and receive SMS from clients with this module.

##### Full documentation about Zenvia API on http://docs.zenviasms.apiary.io

### Install
`npm install @zenvia/zenvia-sms-core`

### How to create Zenvia SMS Callbacks Server

```javascript
let zcs = require('@zenvia/zenvia-sms-core').callbacksServer;

zcs.startServer(81);

zcs.events.on('event', (data)=>{
    console.log(data);
});
```

### How to use Zenvia SMS API

```javascript
/**
 * Available methods:
 *      setCredentials(account, password) - Set API Credentials
{'fraction_non_alphanumeric': 0.1683760683760684, 'fraction_numerical': 0.019658119658119658, 'mean_word_length': 5.033505154639175, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, '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': '6282383', 'n_tokens_mistral': 891, 'n_tokens_neox': 827, 'n_words': 150}