You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnCloud edited this page Dec 10, 2024
·
2 revisions
Before making API calls, initialize the client with the required configuration:
import{VirtFusionV1}from"virtfusion";constvirtfusion=newVirtFusionV1();constVIRTFUSION_API_HOST="vf.example.com";// Hostname of the VirtFusion API serverconstVIRTFUSION_API_KEY="****"// Your API keyvirtfusion.init({host: VIRTFUSION_API_HOST,token: VIRTFUSION_API_KEY,useHttps: true,});