Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 777 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 777 Bytes

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