1.0.3 • Published 9 years ago
parsely v1.0.3
node-parsely
A javascript client for the Parse.ly APIs.
Installation
npm install parsely
Documentation
This is a very light wrapper around the parsely.com API, providing the same options as the API docs there. The wiki has a full set of API docs, where you can see what method corresponds to which API, and a list of the parameters they take.
Tracking Events
var parsely = require('parsley');
var trackingData = {
idsite: 'parselyid',
date: (new Date()),
data: {
parsely_site_uuid: 'unique id for client'
}
};
parsely.track(trackingData, 'Mozilla/6.0', function(err){
if(err){
console.log(err);
}
});
Analytics
parsely.analytics.byType('query', 'posts', {days: 1}, {sharedSecret: 'dudes'}, function(err, data){
if(err){
console.log(err);
}
console.log(data);
});
Development
git clone https://github.com/toddself/node-parsely
cd node-parsely
npm install