Skip to content

Commit ce40c6d

Browse files
committed
simplify readme
1 parent a228aa6 commit ce40c6d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,22 @@ client.users.create({ email: "[email protected]" }, function (r) {
4848

4949
```node
5050
// List users
51-
client.users.list(function (d) { console.log(d.body.users.length) });
51+
client.users.list(callback);
5252
```
5353

5454
```node
5555
// List users by tag or segment
56-
client.users.listBy({ tag_id: 'haven' }, function (d) {
57-
console.log(d.body.users.length)
58-
});
56+
client.users.listBy({ tag_id: 'haven' }, callback);
5957
```
6058

6159
```node
6260
// Find user by id
63-
client.users.find({ id: '1234' }, function (d) {
64-
console.log(d.body)
65-
});
61+
client.users.find({ id: '1234' }, callback);
6662
```
6763

6864
```node
6965
// Delete user by id
70-
client.users.delete({ id: '1234' }, function (d) {
71-
console.log(d.body)
72-
});
66+
client.users.delete({ id: '1234' }, callback);
7367
```
7468
## Events
7569

0 commit comments

Comments
 (0)