mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
13 lines
284 B
JavaScript
Executable File
13 lines
284 B
JavaScript
Executable File
const { EventService } = require("m3o/event");
|
|
|
|
// Read stored events
|
|
async function readEventsOnAtopic() {
|
|
let eventService = new EventService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await eventService.read({
|
|
topic: "user",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
readEventsOnAtopic();
|