import MobilerunCloud from '@mobilerun/sdk';
const client = new MobilerunCloud({
apiKey: 'My API Key',
});
const response = await client.tasks.getTrajectory('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.trajectory);{
"trajectory": [
{
"data": {
"id": "<string>",
"streamUrl": "<string>",
"token": "<string>"
},
"event": "<string>"
}
]
}Get the trajectory of a task.
import MobilerunCloud from '@mobilerun/sdk';
const client = new MobilerunCloud({
apiKey: 'My API Key',
});
const response = await client.tasks.getTrajectory('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.trajectory);{
"trajectory": [
{
"data": {
"id": "<string>",
"streamUrl": "<string>",
"token": "<string>"
},
"event": "<string>"
}
]
}Bearer token via Authorization header
Successful Response
The trajectory of the task
Was this page helpful?