Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Askancy Posted October 27, 2019 Posted October 27, 2019 How can I show my users the notifications they received on the forum, directly on the site? Unfortunately there are no APIs that allow it, and in "core_notifications" it is complex to get the elements, so I asked if there was a function.
bfarber Posted October 28, 2019 Posted October 28, 2019 The REST API has an option to allow you to fetch all notifications for a member. https://invisioncommunity.com/developers/rest-api?endpoint=core/members/GETitem_notifications
Askancy Posted October 29, 2019 Author Posted October 29, 2019 On 10/28/2019 at 1:58 PM, bfarber said: The REST API has an option to allow you to fetch all notifications for a member. https://invisioncommunity.com/developers/rest-api?endpoint=core/members/GETitem_notifications Thanks a lot bfarber I missed this API. Having the autoloader of the init.php file, is there any way to recall them without using restapi?
jesuralem Posted October 30, 2019 Posted October 30, 2019 On 10/28/2019 at 1:58 PM, bfarber said: The REST API has an option to allow you to fetch all notifications for a member. https://invisioncommunity.com/developers/rest-api?endpoint=core/members/GETitem_notifications An API to create notifications would also be great ! I hope it is in the roadmap somewhere.
bfarber Posted October 30, 2019 Posted October 30, 2019 15 hours ago, Askancy said: Thanks a lot bfarber I missed this API. Having the autoloader of the init.php file, is there any way to recall them without using restapi? Well, you could look at what the REST API code or the notification menu code is doing and basically do the same thing. That is a bit different from showing notifications on an external site, however.
Fosters Posted October 30, 2019 Posted October 30, 2019 1 hour ago, jesuralem said: An API to create notifications would also be great ! I hope it is in the roadmap somewhere. includes an endpoint allowing you to create custom notifications via REST 🙂
Recommended Posts
Archived
This topic is now archived and is closed to further replies.