# peach-client

A simple client for [Peach](https://peach.cool).

### Installation

```
npm install peach-client
```

### Usage

```javascript
var Peach = require('peach');
var peach = new Peach({
	email: 'foobar@test.com',
	password: 'hunter2'
});

peach.login().then(function() {
	Peach.getConnections().then(function(data) {
		console.log(data);
	});
});
```

### Methods

```javascript
Peach.login();

Peach.getConnections();
// Gets statuses of friends in your circle.

```

# peach-client

A simple client for [Peach](https://peach.cool).

### Installation

```
npm install peach-client
```

### Usage

```javascript
var Peach = require('peach');
var peach = new Peach({
	email: 'foobar@test.com',
	password: 'hunter2'
});

peach.login().then(function() {
	return peach.getConnections();
}).then(function(data) {
	console.log(data);
});

```

### Methods

```javascript
Peach.login();

Peach.getConnections();
// Gets statuses of friends in your circle.

```

Use promises the way they're supposed to be used
Use promises the way they're supposed to be used
