import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const installDeploymentPackageResponse = await client.deploymentPackages.install('account_id');
console.log(installDeploymentPackageResponse.package_installation);
{
"package_installation": {
"organization_id": "<string>",
"package_version_id": "<string>",
"status": "INSTALLED",
"install_log": "<string>",
"state": {},
"account_id": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>"
}
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const installDeploymentPackageResponse = await client.deploymentPackages.install('account_id');
console.log(installDeploymentPackageResponse.package_installation);
{
"package_installation": {
"organization_id": "<string>",
"package_version_id": "<string>",
"status": "INSTALLED",
"install_log": "<string>",
"state": {},
"account_id": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>"
}
}
Successful Response
The response is of type object
.