1.8.0 • Published 10 months ago

@planqk/planqk-service-sdk v1.8.0

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
10 months ago

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
1.8.0

10 months ago

1.7.0

10 months ago

1.6.0

11 months ago

1.5.1

11 months ago

1.4.2

11 months ago

1.5.0

11 months ago

1.4.1

12 months ago

1.4.0

1 year ago