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 credential = await client.credentials.packages.credentials.retrieve('credentialName', {
packageName: 'packageName',
});
console.log(credential.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 credential = await client.credentials.packages.credentials.retrieve('credentialName', {
packageName: 'packageName',
});
console.log(credential.data);{
"data": {
"userId": "<string>",
"packageName": "<string>",
"secretPath": "<string>",
"credentialName": "<string>",
"fields": [
{
"fieldType": "email",
"value": "<string>"
}
]
}
}Bearer token via Authorization header
Credential fetched successfully
Show child attributes
Was this page helpful?