correios-webservice
Version:
Cliente NodeJS para consumir a api nova dos Correios (CWS)
17 lines • 430 B
JavaScript
import { Endpoint } from "../endpoint";
class Objects extends Endpoint {
async get(trackingCode) {
return await this.http.get(`/objetos/${trackingCode}`, {}, true, "v1");
}
getPrefix() {
return "/srorastro";
}
}
class Tracking {
objetos;
constructor(auth, config) {
this.objetos = new Objects(auth, config);
}
}
export { Tracking, Objects };
//# sourceMappingURL=tracking.js.map