1.3.11 • Published 2 months ago

@anaqor/planqk-service-sdk v1.3.11

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

PlanQK Service SDK

Installation

The package can be installed using npm:

npm install @anaqor/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.3.11

2 months ago

1.3.10

2 months ago

1.3.9

2 months ago

1.3.8

5 months ago

1.3.7

5 months ago

1.3.6

5 months ago

1.3.5

5 months ago