Codigo no usable
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { NosHttpClient } from "./packages/sim-consumidor-nos/infrastructure/NosHttpClient.js";
|
||||
import { NosRepository } from "./packages/sim-consumidor-nos/infrastructure/NosRepository.js";
|
||||
import { env } from "./packages/sim-consumidor-nos/config/env/env.js";
|
||||
|
||||
async function main() {
|
||||
@@ -15,21 +14,21 @@ async function main() {
|
||||
try {
|
||||
const history = await client.get(`/subscribers/${iccid}/history`);
|
||||
console.log("HISTORY:", history.data);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error("HISTORY ERROR");
|
||||
}
|
||||
|
||||
try {
|
||||
const audit = await client.get(`/subscribers/${iccid}/audit`);
|
||||
console.log("AUDIT:", audit.data);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error("AUDIT ERROR");
|
||||
}
|
||||
|
||||
try {
|
||||
const actions = await client.get(`/subscribers/${iccid}/actions`);
|
||||
console.log("ACTIONS:", actions.data);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error("ACTIONS ERROR");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user