Node.js API Wrapper for CenturyLink Cloud's API
This module is published to NPMJS
export CLC_V1_API_KEY="YourCLCPortalAPIKey"
export CLC_V1_API_PASSWD="YourCLCPortalAPIPassword"
export CLC_V2_API_USERNAME="YourCLCPortalUsernameHere"
export CLC_V2_API_PASSWD="YourCLCPortalPasswordHere"
npm install --save node-clc-sdk
The --save
tells NPM to automatically add it to your package.json
file
// Import the module
var clc = require('node-clc-sdk');
clc.authentication.login(function(error, response, data){
if (error) {
return console.error(error);
}
console.log(data)
});
All methods follow the official API documentation.
If a method uses Query Parameters, please account for them in your parameters. The format for query parameters is "searchTerm1=search&searchTerm2=search"
and so on.
Convention for callback arguments: callback(error, response, data)
MIT license. See the LICENSE file for details.