Socket
Book a DemoInstallSign in
Socket

cl-speakeasy-sdk

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cl-speakeasy-sdk

CenturyLink SpeakEasy JavaScript SDK

0.1.8
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

A CenturyLink SpeakEasy API JavaScript SDK. Check out the demo in example/index.html

Installation

npm install cl-speakeasy-sdk

Documentation

See the documentation for CenturyLink SpeakEasy JavaScript SDK Get Started and Guides. Also you can run gulp doc and see generated documentation at /docs/.

Build process details

Build process requirements

  • Node.js 0.12 (or later)
  • r.js
  • Gulp

To build the CenturyLink SpeakEasy JavaScript SDK source, issue the following commands:

  • open the command line and switch into the project folder
  • npm install
  • sudo npm install -g gulp
  • gulp to see the list of available tasks

Essential gulp tasks

  • gulp build dumps a plain and a minified file from all files in the folder src into the folder dist.
  • gulp clean removes all files in the folder dist.
  • gulp doc generates JSDuck documentation in the folder docs.
  • gulp test runs the tests and linting for all files in the folder src.
  • gulp bump-patch increases the version by 0.0.1 for the last git commit and pushes the new tag to the remote repository.
  • gulp bump-minor increases the version by 0.1.0 for the last git commit and pushes the new tag to the remote repository.
  • gulp bump-major increases the version by 1.0.0 for the last git commit and pushes the new tag to the remote repository.

Configuration details

Please see the Getting Started section for details and examples of how to configure the CenturyLink SpeakEasy JavaScript SDK.

Example

This example shows some of the functionality supported by the CenturyLink SpeakEasy JavaScript SDK.

index.html:

<!DOCTYPE html>
<html>
<head>
    <title>Usage example for the CenturyLink SpeakEasy JavaScript SDK</title>
    <script type="text/javascript" src="speakeasy-0.1.4.js"></script>
</head>
<body>

    <script type="text/javascript" src="index.js"></script>

</body>
</html>

index.js:

var username = 'joe';
var password = 'some-secret-pass';

CtlSpeakEasy.Auth.login(username, password, function(error, response) {
    if (!error && response) {
        console.info('Successfully authenticated. Exposing subscription services selection.');
    } else {
        console.error('Authentication failed: ', error);
    }
});

//...

CtlSpeakEasy.CallManager.createCall('3031234567', false, function(call) {
    console.info('Calling 3031234567...');
}, function() {
    console.error('Make new call failed!');
});

License

This project is licensed under the Apache License v2.0.

Keywords

centurylink

FAQs

Package last updated on 11 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.