This package has been deprecated

Author message:

Use @esri/arcgis-rest-js

esri-portal-api

0.0.2 • Public • Published

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);

Package Sidebar

Install

npm i esri-portal-api

Weekly Downloads

2

Version

0.0.2

License

Apache 2.0

Last publish

Collaborators

  • dbouwman