denny0754 / pve-api Goto Github PK
View Code? Open in Web Editor NEWProxmox API
Proxmox API
Hey, where do I have to fill in my credentials to use the package?
When I use this:
const username = client.config.hostData.username;
const password = client.config.hostData.password;
const realm = client.config.hostData.realm;
const host = client.config.hostData.host;
const pve_api = require('pve-api')({username}, {password}, {realm}, {host});
I get this error:
home/robin/WebstormProjects/dsc-PVE/node_modules/pve-api/lib/pve-api.js:609
await _GenerateNewTicket();
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/robin/WebstormProjects/dsc-PVE/pve.js:21:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
Originally posted by @RobinDev03 in #1 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.