auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params) => {
}
import fs from "fs"
import PDFServicesSdk from '@adobe/pdfservices-node-sdk';
const credentials = PDFServicesSdk.Credentials
.serviceAccountCredentialsBuilder()
.withClientId(params.clientId)
.withClientSecret(params.clientSecret)
.withOrganizationId(params.orgId)
.withAccountId(params.accountId)
.withPrivateKey(fs.readFileSync($attachments["private.key"]).toString())
.build();
return credentials.getAccountId()