Skip to content

A simple, unofficial Peach (peach.cool) client for NodeJS

License

Notifications You must be signed in to change notification settings

andrewvy/peach-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peach-client

npm version

NPM

A simple, unofficial API client for Peach.

Heavily based off research of @ummjackson documentation of Peach's API

This is extremely WIP, use at your own risk.

Installation

npm install peach-client

Usage

var Peach = require('peach');
var peach = new Peach({
	email: 'foobar@test.com',
	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.