1.3.12 • Published 1 year ago

@anaqor/planqk-service-sdk v1.3.12

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
1 year 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.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago