@devicepark/session-client
v1.0.2
Published
Node.js TypeScript client for DevicePark Session API
Readme
@devicepark/session-client
Node.js client for managing DevicePark Device Sessions.
This client library helps you programmatically start and stop remote testing sessions.
✨ Features
- ✅ Session lifecycle management: start, stop
- 🔐 OAuth2 authentication with automatic token handling
- 🔁 Retry and error-handling with Axios
📦 Installation
npm install @devicepark/session-client🚀 Usage
import { DeviceSessionClient } from '@devicepark/session-client';
import { init } from '@devicepark/shared';
init({
apiUrl: 'https://<devicepark_api_uri>',
authentication: {
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
issuerUri: 'https://<devicepark_auth_uri>',
}
});
await DeviceSessionClient.startSession({
allocationId: '<allocation_id>',
userId: <user_id>,
userEmail: '<email>',
companyId: <company_id>,
companyName: '<company_name>'
});🔗 Related Packages
🛡 License
MIT
