peach-client
v1.1.4
Published
A simple Peach client for NodeJS
Downloads
15
Readme
peach-client
A simple, unofficial API client for Peach.
This is extremely WIP, use at your own risk.
Installation
npm install peach-client
Usage
var Peach = require('peach');
var peach = new Peach({
email: '[email protected]',
password: 'hunter2'
});
peach.login().then(function() {
return peach.postText("Hello World!");
}).then(function(data) {
console.log(data);
});
Methods
Peach.login();
Peach.getConnections();
// Gets statuses of friends in your circle.
Peach.getConnectionsExplore();
// Gets explore connections. (Friends of friends not in your circle).
Peach.checkForUnreadActivity();
// Checks for any unread activity.
Peach.getActivityFeed();
// Gets your activity feed.
Peach.post({});
// Undocumented, raw access to the 'post' endpoint.
Peach.postText("hello");
// Posts a simple text message.
Peach.changeDisplayName("FooBar");
// Changes your display name
Peach.changeName("foobar");
// Changes your username
Peach.resetPassword();
// Resets your password and sends you an email with the reset link.