# hubtel-sms-node

> A node wrapper around the hubtel sms api.

Latest version **1.0.3** (published 2018-12-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install hubtel-sms-node
pnpm add hubtel-sms-node
yarn add hubtel-sms-node
bun add hubtel-sms-node
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-27 |
| First published | 2018-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | gwuah |
| Maintainers | gwuah |
| Keywords | hubtel, sms, api, javascript |

## Links

- npm: https://www.npmjs.com/package/hubtel-sms-node
- Repository: https://github.com/gwuah/hubtel-sms-node
- Homepage: https://github.com/gwuah/hubtel-sms-node#readme
- Issues: https://github.com/gwuah/hubtel-sms-node/issues
- npm.io page: https://npm.io/package/hubtel-sms-node

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [query-string](https://npm.io/package/query-string.md) ^6.2.0

## Recent versions

- 1.0.3 (latest) — 2018-12-27
- 1.0.2 — 2018-10-13
- 1.0.1 — 2018-10-13
- 1.0.0 — 2018-10-10

## README

# hubtel-sms-node
A node wrapper around hubtel sms api. [WIP]

### Installation

```bash
yarn add hubtel-sms-node
```

### Usage

Sending message using hubtel
```javascript

const hubtel = require('hubtel-sms-node')({
  clientId: 'your key here',
  clientSecret:  'your secret here'
});

let payload = {
  from: "Sample Message",
  to: '2330244161819',
  registeredDelivery: true,
  message: 'Yo, this should work.. hehe'
}

hubtel.sendSMS(payload).then((response) => {
 /* play with response */
}).catch(error => {
  /* handle errors here */
})
```

### Todo
- [ ] Update docs to include type of response recieved after making request.
- [ ] Check status of messages sent (add new method)
- [ ] Add a 5 second break between requests to make sure we are following api rules.
- [x] Sanitize and encode input
- [x] Write tests for library
- [x] Use a seperate method to build url

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