Installation
Depending on the programming language used (JavaScript or Python), the package can be directly loaded from npm or PyPI. Since it is currently still a pre-release, the next tag must be used for npm, and the test.pypi.org index must be used for PyPI.
npm install @requence/service@nextpip install -i https://test.pypi.org/simple/ requenceUsing the access token
Section titled “Using the access token”The previously created access token can be used in various ways.
as ENV variable
Section titled “as ENV variable” REQUENCE_SERVICE_ACCESS_TOKEN="..." # or REQUENCE_ACCESS_TOKEN="..."in package.json ts/js only
Section titled “in package.json ”{ "name": "...", "type": "module", "version": "...", "dependencies": { "@requence/service": "next" } "peerDependencies": { "typescript": "^5.0.0", }, "requence": { "accessToken": "..." }}in code
Section titled “in code” import { createService } from '@requence/service'
createService( { version: '...', accessToken: '...', }, (ctx) => { ... }, )from requence.service import Service
Service({ "version": "...", "access_token": "..."}, message_handler)