Socket
Socket
Sign inDemoInstall

ispapi-apiconnector

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ispapi-apiconnector

1API API Connector for node.js


Version published
Weekly downloads
3
decreased by-96.97%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ISPAPI-APICONNECTOR

This module is a connector library for the insanely fast 1API backend API. For further informations visit our homepage http://1api.net and do not hesitate to contact us.

Installation

$ npm install ispapi-apiconnector

Usage

var apiconnector = require('ispapi-connector')
  , api = apiconnector.Client()
  , c;

//optional: set client remote address including remote port, e.g.:
api.setRemoteAddr("1.2.3.4:80");

/** mandantory: set your account name and password for later requests
 * NOTE: if not set, credentials of demo user in OT&E (Test) system will be used by default as fallback
 * 1st parameter: account name
 * 2nd parameter: password
 * 3rd parameter: system environment / entity. Use "1234" for OT&E (Testsystem) and "54cd" for Production System
 */
api.login("test.user", "test.passw0rd", "1234");//OT&E demo user

/** optional: set url for api connection
 * NOTE: if not set, default connection url will be used
 */
api.connect("https://coreapi.1API.net/api/call.cgi");

//create connection instance to work with
c = api.createConnection({
	COMMAND : "StatusUser"
});

//output api response when ready
c.once("response", function(r){
	console.dir(r.as_hash());
});

//react on error events
c.on("error", function(e){
	console.log(e.message);
});

//perform the request
c.request();

FAQ

Nothing added yet.

License

MIT

Keywords

FAQs

Last updated on 08 Oct 2015

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc