# codeceptjs-twiliohelper

> CodeceptJS Helper to read SMS on Twilio Online Numbers, useful for OTP based Authentication with Appium

Latest version **1.0.1** (published 2021-09-13) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install codeceptjs-twiliohelper
pnpm add codeceptjs-twiliohelper
yarn add codeceptjs-twiliohelper
bun add codeceptjs-twiliohelper
```

## 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.1 |
| Published | 2021-09-13 |
| First published | 2021-09-13 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 36.8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Puneet Kala |
| Maintainers | puneet0191 |
| Keywords | codeceptJS, codeceptjs, twilio, codeceptjs-twilio, codeceptjs-twiliohelper |

## Links

- npm: https://www.npmjs.com/package/codeceptjs-twiliohelper
- Repository: https://github.com/puneet0191/codeceptjs-twiliohelper
- Homepage: https://github.com/puneet0191/codeceptjs-twiliohelper#readme
- Issues: https://github.com/puneet0191/codeceptjs-twiliohelper/issues
- npm.io page: https://npm.io/package/codeceptjs-twiliohelper

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.21.4
- [twilio](https://npm.io/package/twilio.md) ^3.67.1
- [codeceptjs](https://npm.io/package/codeceptjs.md) ^3.0.5

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-09-13
- 1.0.0 — 2021-09-13

## README

# Twilio Helper for CodeceptJS
Helper for using Twilio library to use Twilio Online Mobile Numbers and OTP based Authentication

## Installation
```
npm i codeceptjs-twiliohelper --save
```

## Configuration
```
{
  //...
   helpers: {
    TwilioHelper: {
          require: "codeceptjs-twiliohelper",
          accountID: process.env.TWILIO_ACCOUNT_SID,
          authToken: process.env.TWILIO_ACCOUNT_AUTH_TOKEN,
        },
  //...
}
```

## Usage

After installing the node modules, inside your codeceptjs tests, use:
```
I.readSMS(sentAfter, "+XXXXXX");
```
The first parameter is a timestamp when the SMS OTP was triggered, the second parameter
is the mobile number to which the SMS is sent, this will allow Twilio SDK to read
Inbound SMS for this number post the timestamp.

Please Note: readSMS returns only the most recent SMS post timestamp.

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