Skip to content

Commit

Permalink
add recos multi, cluster, activities in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewoox committed Jan 8, 2018
1 parent e82343a commit cf57fdd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,33 @@ eb.trackActivity({
})
```

### Get Recommendations for a cluster
If the Early Birds profileId is not known, you can replace it with the couple datasourceId / userId.
```js
eb.getRecosForCluster('WIDGET_ID', 'CLUSTER_ID')
```

### Get recos multi
Retrieve results from several recommendation widgets.
```js
eb.getRecommendationsMulti('WIDGET_IDS')
```

### Get Last activities
You can retrieve the list of user last activities, filtered by any verb.

Usage example:

- Retrieve last products liked

- Retrieve last items seen

- Retrieve last buys

```js
eb.getActivities('WIDGET_IDS', 'VERB')
```

## Run the tests
Tests are made using Jest
```bash
Expand Down

0 comments on commit cf57fdd

Please sign in to comment.