# 2office-sms

> send sms use 2office service

Latest version **0.3.0** (published 2017-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install 2office-sms
pnpm add 2office-sms
yarn add 2office-sms
bun add 2office-sms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2017-02-22 |
| First published | 2017-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | gaara |
| Maintainers | gaara |

## Links

- npm: https://www.npmjs.com/package/2office-sms
- Repository: https://github.com/sabakugaara/2office-sms
- Homepage: https://github.com/sabakugaara/2office-sms#readme
- Issues: https://github.com/sabakugaara/2office-sms/issues
- npm.io page: https://npm.io/package/2office-sms

## Dependencies (2)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.17
- [request](https://npm.io/package/request.md) ^2.79.0

## Recent versions

- 0.3.0 (latest) — 2017-02-22
- 0.2.1 — 2017-02-21
- 0.2.0 — 2017-02-21
- 0.1.1 — 2017-02-21

## README

## Install
```
npm i 2office-sms --save
```

## Usage
```
const Office2 = require('../')

const office2 = new Office2({
  account: 'your_2office_account',
  password: 'your_2office_password',
  servivalKey: 'your_2office_key'
})

office2.sendSms('18902xxxxxx', 'message content', 'your_channel', new Date().getTime(), 1, function (err, result) {
  return done(err)
})
```

## Api

- sendSms
  send normal sms(text message)
- sendVoiceSms
  send voice sms(voice call)

## Test

modify `test/fixture.json`, and run `mocha`

---
_Source: https://npm.io/package/2office-sms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
