@planqk/planqk-service-sdk
v1.9.0
Published
Typescript SDK to execute PlanQK Managed Services.
Downloads
9
Readme
PlanQK Service SDK
Installation
The package can be installed using npm
:
npm install @planqk/planqk-service-sdk
Usage
const serviceEndpoint = "..."
const consumerKey = "..."
const consumerSecret = "..."
const client = new PlanqkServiceClient(serviceEndpoint, consumerKey, consumerSecret)
// prepare your input data and parameters
const data = {"input": {"a": 1, "b": 2}}
const params = {"param1": "value1", "param2": "value2"}
// start the execution
let job = await client.startExecution({data, params})
// wait for the result
const result = await client.getResult(job.id!)
Run Tests
SERVICE_ENDPOINT=<endpoint-url> CONSUMER_KEY=<consumer-key> CONSUMER_SECRET=<consumer-secret> npm run test