0.0.2 • Published 10 years ago

ayesmslib v0.0.2

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

aye-sms-node

AyeSms API client wrapper for Node programming language.

Installation

npm install ayesms --save

Authentication

The first step is to authenticate to Kraken API by providing your unique API Key and API Secret while creating a new Kraken instance:

var AyeSms = require('ayesms');

var aye = new AyeSms({
    client_id: 'your-client-id',
    client_secret: 'your-api-secret'
});

Usage

var AyeSms = require('ayesms');

var aye = new AyeSms({
    client_id: 'your-client-id',
    client_secret: 'your-api-secret'
});

// Send message
aye.send_sms('phone-number', 'message-content');

// List all messages for current account
aye.sms_messages();

// Check current account
aye.current_account();

// Check remain credits
aye.credit_left();