Skip to content

Commit

Permalink
feat: add an example to include actor field while triggering event
Browse files Browse the repository at this point in the history
  • Loading branch information
jainpawan21 authored and unicodeveloper committed Feb 12, 2024
1 parent 55450b4 commit 9a30bd1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,23 @@ event_2 = InputEventDto(
novu = EventApi("https://api.novu.co", api_key).trigger_bulk(events=[event1, event2])
```

**Include actor field:**

```python
from novu.api import EventApi

novu = EventApi(url, api_key).trigger(
name="workflow_trigger_identifier",
recipients="subscriber_id",
actor={
"subscriberId": "subscriber_id_actor"
},
payload={
"key":"value"
},
)
```

**Broadcast to all current subscribers:**

```python
Expand Down

0 comments on commit 9a30bd1

Please sign in to comment.