0.0.2 • Published 7 years ago

esri-portal-api v0.0.2

Weekly downloads
4
License
Apache 2.0
Repository
github
Last release
7 years ago

DEPRECATED - PLEASE USE THE @esri/arcgis-rest-js library.

esri-portal-api

Node js wrapper to streamline communication with the ArcGIS Online / Portal API.

Note: This is a work in progress, and does not wrap the entire Portal API.

Getting started

Install the package from npm

npm install esri-portal-api

In your project create an instance of the wrapper

var AGO = require('esri-portal-api');

var ago = new AGO();
//use the wrapper
ago.portal.self('YOUR-VALID-TOKEN')
.then(function(json){
  //do whatever
});

All methods return q promises

Options

The constructor accepts an options object.

var opts ={
  baseUrl: 'http://some-other-ago-portal-url.com',
  logger: <some object that exposes a .info function>
}

var ago = new AGO(opts);