Identity
Use an Identity to assign Events in your system to THX users and build quests around it. Learn how to connect an Identity to a THX account using your campaign widget.
Last updated
const { THXAPIClient } = require('@thxnetwork/sdk');
const thx = new THXAPIClient({
apiKey: '',
});
const identity = await thx.identity.create();
// e7f32a71-33ea-418e-9d80-32b6bf6405f0const identity = await thx.identity.get("0x742d35Cc6634C0532925a3b844Bc454e4438f44e");
// 225a3287-ca4d-6b9d-30a2-860ab99db2fdwindow.THXWidget.setIdentity("a6021617-9aab-4194-b2af-a4dd0cc96f84")window.THXWidget.connect("a6021617-9aab-4194-b2af-a4dd0cc96f84")