magicbell
Version:
MagicBell API wrapper
27 lines • 875 B
JavaScript
// This file is generated. Do not update manually!
import { Resource } from '../client/resource.js';
export class Imports extends Resource {
path = 'imports';
entity = 'import';
create(dataOrOptions, options) {
return this.request({
method: 'POST',
}, dataOrOptions, options);
}
/**
* Query the status of the import for a summary of imported records and failures
* for each record that could not be imported successfully.
*
* @param importId - ID of the import.
* The ID of the import is returned when the import is created.
* @param options - override client request options.
* @returns
**/
get(importId, options) {
return this.request({
method: 'GET',
path: '{import_id}',
}, importId, options);
}
}
//# sourceMappingURL=imports.js.map