Iâm trying to develop an ExApp in Python, but the responses I get to my API calls have me confused. I havenât been able to find an example app that does the same to help resolve the issues.
In short: I want my ExApp to receive events when files are uploaded to my Nextcloud instance.
result = await nc.ocs(
"POST",
"/ocs/v1.php/apps/app_api/api/v1/events_listener",
json={
"eventType": "node_event",
"actionHandler": "/handle_file_event",
"eventSubtypes": \["NodeCreatedEvent"\], # Only listen to file creation events
},
)
If I do the above I get an Error 996 back due to âClass âOCA\AppAPI\Controller\EventsListenerControllerâ does not existâ
If I drop â/ocs/v1.phpâ from the URL I get a 404 Not Found instead.
The ExApp seems to initialize fine, I have working heartbeats etc and the nc.log call copied from the example apps work and I get the output in the logs.