import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const packages = await client.credentials.packages.list('packageName');
console.log(packages.data);{
"data": [
{
"userId": "<string>",
"packageName": "<string>",
"secretPath": "<string>",
"credentialName": "<string>",
"fields": [
{
"fieldType": "email",
"value": "<string>"
}
]
}
]
}import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const packages = await client.credentials.packages.list('packageName');
console.log(packages.data);{
"data": [
{
"userId": "<string>",
"packageName": "<string>",
"secretPath": "<string>",
"credentialName": "<string>",
"fields": [
{
"fieldType": "email",
"value": "<string>"
}
]
}
]
}Bearer token via Authorization header
Package credentials fetched successfully
Show child attributes
Was this page helpful?