Askancy Posted October 27, 2019 Share 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. Link to comment Share on other sites More sharing options...
bfarber Posted October 28, 2019 Share 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 Link to comment Share on other sites More sharing options...
Askancy Posted October 29, 2019 Author Share 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? Link to comment Share on other sites More sharing options...
jesuralem Posted October 30, 2019 Share 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. Link to comment Share on other sites More sharing options...
bfarber Posted October 30, 2019 Share 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. Link to comment Share on other sites More sharing options...
Fosters Posted October 30, 2019 Share 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 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.