To get your Application ID, you can fill out the registration form here.
Contracts represent the data you are requesting from your users, as well as the specifics around the terms of use. Each contract has a contract ID and a private key, which work together to request, download, and decrypt the personal data shared with your app.
For demo purposes, we provide example contracts with example keys in our example application. In order to release your app to production, you will need personalised contracts that are tied to your application ID and have your branding and contact information as well as your legal terms embedded. When you are ready to go to production or interact with real users, visit our launching your app page to request production contracts.
There are three types of contracts available:
These are contracts that request data from the user.
Some example read contracts may be:
These are contracts that allow you to push data in to a user's library.
If you have written something to the user, then you can use a read raw contract to request this data back out.
Currently, we provide the option to get contract details. If you want to get your contract details you need to call the following method:
// Initialize the SDK
import {init} from "@digime/digime-sdk-nodejs";
const sdk = init({ applicationId: <you-application-id> });
// contractDetails - The same one used in getAuthorizeUrl() where you have contract ID and private key.
const report = await sdk.getContractDetails({
contractDetails,
});
//.
Please click here to check the response.