import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.users.connect({
organizationId: '123e4567-e89b-12d3-a456-426614174001',
walletAddress: '0x1234567890abcdef1234567890abcdef12345678',
walletType: 'evm',
websiteId: '123e4567-e89b-12d3-a456-426614174000',
});
console.log(response.id);
{
"walletAddress": "<string>",
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-10-01T12:34:56Z",
"updatedAt": "2023-10-05T15:30:00Z"
}
This endpoint allows you to connect a user to a user group
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.users.connect({
organizationId: '123e4567-e89b-12d3-a456-426614174001',
walletAddress: '0x1234567890abcdef1234567890abcdef12345678',
walletType: 'evm',
websiteId: '123e4567-e89b-12d3-a456-426614174000',
});
console.log(response.id);
{
"walletAddress": "<string>",
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-10-01T12:34:56Z",
"updatedAt": "2023-10-05T15:30:00Z"
}
Body
Schema for a connect user schema
200
Schema for a connect users response
Was this page helpful?