Introduction
Welcome to the node.js client for the SNAPPA API by PA (Press Association).
Installation
To utilise the SNAPPA API client for node.js install the npm module.
npm install pa-snappa-api-client
Usage
After the installation of the npm package you can start making calls to the SNAPPA API. Initially you need to instantiate the client, using your API key:
const SnappaClient = ; const client = baseUrl: 'http://snappa.api.press.net/v1-beta' apikey: '<YOUR API KEY' ;
Once instantiated you can make requests against the Feeds, Assets and Tags resources provided by the SNAPPA API as follows:
Resources
Feeds
The Feeds resource provides access to feeds.
List Feeds
client ;
Get Feed Items
client id'firehose' ;
Assets
The Assets resource provides access to assets.
List Assets
client ;
Get Asset
client id'abc-123' ;
Tags
The Tags resource provides access to tags.
List Tags
client tags ;