auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps) => {}
return await require("@pipedreamhq/platform").axios(this, {
url: "https://api.pcloud.com/userinfo",
params: {
getauth: 1 ,
logout: 1,
username :"pdapikey@gmail.com",
password:"xxx"
}
})auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, auths) => {}const pcloudSdk = require("pcloud-sdk-js");
global.locationid = 1;
var locations = {
1: "api.pcloud.com",
2: "eapi.pcloud.com"
};
auths.pcloud.client_id
const client = await pcloudSdk.createClient(steps.nodejs_1.$return_value.auth,"pcloud");
try{
return await client.api("userinfo");
}catch(err){
console.log(JSON.stringify(err));
}