File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments