Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
officert committed Jun 13, 2017
1 parent 2f5e94b commit 2b974c1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ client.events.create({

## Table of Contents

* [Events](#events)
* [Labels](#labels)
- [Events](#events)
- [Labels](#labels)

## Events

Expand Down Expand Up @@ -230,4 +230,22 @@ client.events.verification({
});
```

##Labels
## Labels

### [Label User](https://siftscience.com/developers/docs/curl/labels-api/label-user)

```javascript
client.events.createByUserId('userId', {
$type: 'your custom event',
$is_bad : true,
$abuse_type: 'payment_abuse'
});
```

### [Unlabel User](https://siftscience.com/developers/docs/curl/labels-api/unlabel-user)

```javascript
client.events.deleteByUserId('userId', {
$abuse_type: 'payment_abuse'
});
```

0 comments on commit 2b974c1

Please sign in to comment.