@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
46 lines • 1.34 kB
JavaScript
import { OpenAPI } from '../core/OpenAPI.js';
import { request as __request } from '../core/request.js';
export class EventService {
/**
* List events
* Retrieve a paginated list of events
* @returns any Successful response
* @throws ApiError
*/
static getEvents({ limit = 20, offset, sort, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/events',
query: {
'limit': limit,
'offset': offset,
'sort': sort,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
500: `Internal server error`,
},
});
}
/**
* Get event
* Retrieve a specific event by ID
* @returns events Successful response
* @throws ApiError
*/
static getEvents1({ eventId, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/events/{event_id}',
path: {
'event_id': eventId,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
404: `Not found - Resource does not exist`,
500: `Internal server error`,
},
});
}
}
//# sourceMappingURL=EventService.js.map