Developer Chat Apache 2.0 License Typescript Web


Configuration Options

See all possible configurations when initializing the SDK.

Returns

The available platforms.

Examples

The most basic initialization:

// Initialize the SDK
import {init} from "@digime/digime-sdk-nodejs";
const sdk = init({ applicationId: <you-application-id> });


// contractDetails - The same one passed into getAuthorizeUrl().
// platformsBodyParams - Additional query options.

const contractDetails = {
contractId: <your-contract-id>,
privateKey: <private-key-for-contract-id>,
}

const platformsBodyParams {
query: {
/**
* Posible fields to include are defined in type PlatformsIncludeFieldList.
*/
include: <array of fileds to include>,
filter: {
id: <array of IDs to filter>
},
};
}

const platforms = await sdk.queryPlatforms({
contractDetails,
platformsBodyParams,
});

More on platformsBodyParams can be checked here

Generated using TypeDoc