Headless: fetchNotifications method
I want to fetch the "actor" image, the relative path will be data[0].actor, but I'm not sure how it suppose to be represented... incase the actor has an actual image - should I get the URL? Or something?
12 Replies
Right now I'm using the default image for the actor, but it's not very straightforward for me
Over the Novu GUI, the image is an SVG file
@biswaviraj?
If you're using the
user
avatar option,
then in the data field it will return the avatar url of the subscriber whose id was sent in the actor key during trigger
you can add avatar to each subscriber during the creation of subscriber
I think that for testing purposes, it would be great to enable the option to edit subscriber information from the GUI..
Because for my use case now, I want to test the data I could fetch, but according to your response, I will need to trigger this action which is not that straight forward ....
You could also do update
Subscribers | Novu
Novu manages your users in a specific subscribers data model, that allows the Novu API to manage different aspects of the notification flow while providing an easy interface for triggering notifications.
Thanks Gali!
I saying this because I believe it could improve the experience to be able to do it from the GUI 😁
BTW, is it possible to trigger this via Curl?
Yes
Thank you!!
oops
POST
I did a zero instead of 0
Worked!