/api-nodejs

A node js package to connected to the Genkgo System

Primary LanguageJavaScript

api-nodejs

A node js package to connected to the Genkgo System

Using

After installing the application you can use the Genkgo Api

var genkgoapi = require('genkgoapi');

api = genkgoapi.create(settings.url, settings.apiKey);

api.command('organization', 'query', {q: 'webmaster'}, function (result) {
	console.log(result);
});

Testing

  • Copy test-settings.js.sample to test-settings.js
  • Change the url to your domain
  • Change the Api key to a key given by the Genkgo system
  • Make sure the entry with api key has rights to execute your operations

run the test node

node tests/test.js

Info