Class: TorqueAudienceClient
Last updated
Last updated
@torque-labs/torque-ts-sdk • Docs
@torque-labs/torque-ts-sdk / TorqueAudienceClient
The TorqueAudienceClient class is used to manage and verify audiencess for the Torque API.
Create a new instance of the TorqueAdminClient class with the provided API key.
Parameters
Parameter | Type | Description |
---|---|---|
Returns
Defined in
Builds an audience with the provided options.
Parameters
Returns
Promise
<AudienceBuildResponse
>
The response from the API.
Throws
If there is an error building the audience.
Defined in
Returns
Promise
<void
>
Defined in
Verifies the current user with the provided audience.
Parameters
Returns
Promise
<boolean
>
True if the user is verified with the audience, false otherwise.
Throws
If there is an error verifying the user with the audience.
Defined in
Property | Type |
---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
options
The options for the TorqueAudienceClient.
client
userClient
undefined
| TorqueUserClient
options
The options for the audience build.
audience
The options for the audience verification.
publicKey
?
string
-