multicloud_rule_manager 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/retrieve.js +4 -3
- package/package.json +1 -1
package/commands/retrieve.js
CHANGED
|
@@ -43,16 +43,17 @@ if (!access_token) {
|
|
|
43
43
|
const apiResp = await fetch(`https://eon-dev-01.bit2win.cloud/api/data/v1/rules/`, {
|
|
44
44
|
method: "GET",
|
|
45
45
|
headers: {
|
|
46
|
-
Authorization:
|
|
47
|
-
Accept: "*/*",
|
|
48
|
-
"User-Agent": "PostmanRuntime/7.51.1",
|
|
46
|
+
Authorization: "Bearer "+access_token,
|
|
49
47
|
"Host": "eon-dev-01.bit2win.cloud"
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
50
|
|
|
51
|
+
console.log("🔹 API token:", "Bearer "+access_token);
|
|
53
52
|
console.log("🔹 API status:", apiResp.status);
|
|
54
53
|
const apiText = await apiResp.text();
|
|
55
54
|
console.log("🔹 API response raw:", apiText);
|
|
55
|
+
const apiTeapixt = await apiResp.json();
|
|
56
|
+
console.log("🔹 API response rawjson:", apiTeapixt);
|
|
56
57
|
|
|
57
58
|
let data;
|
|
58
59
|
console.log("🔹 API final URL:", apiResp.url);
|