import GboxSDK from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted
});
async function main() {
const box = await gboxSDK.create({ type: "android" });
await box.proxy.set({
host: "127.0.0.1",
port: 8080,
auth: {
username: "username",
password: "password",
},
});
console.log("HTTP proxy set successfully");
}
main();
Set the proxy for the box
import GboxSDK from "gbox-sdk";
const gboxSDK = new GboxSDK({
apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted
});
async function main() {
const box = await gboxSDK.create({ type: "android" });
await box.proxy.set({
host: "127.0.0.1",
port: 8080,
auth: {
username: "username",
password: "password",
},
});
console.log("HTTP proxy set successfully");
}
main();
Enter your API Key in the format: Bearer <token>. Get it from https://gbox.ai
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Box Http Proxy
Proxy set
Was this page helpful?