1.1.4 • Published 10 years ago

peach-client v1.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

peach-client

npm version

NPM

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: '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.
1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago