Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Roboko Posted October 6, 2021 Posted October 6, 2021 I have made a PHP Script on my invision installation to bring back the newest events using the REST API and display them to the user. The trouble is that the API brings back all events, including events that are not relevant to a given user. I know the user id prior to making my request. My installation does not currently use oAuth. I wonder if there is some way I could query the database rather than use the REST API to avoid having to set up oAuth as that appears to be quite involved. Failing that, is there a barebones way I could let a php script impersonate a user using oAuth?
Daniel F Posted October 6, 2021 Posted October 6, 2021 The events endpoint accepts authors as parameter, allowing you to filter events by the author https://invisioncommunity.com/developers/rest-api?endpoint=calendar/events/GETindex Quote Comma-delimited list of member IDs - if provided, only events started by those members are returned
Recommended Posts