Class: TorqueAudienceClient
@torque-labs/torque-ts-sdk • Docs
@torque-labs/torque-ts-sdk / TorqueAudienceClient
Class: TorqueAudienceClient
The TorqueAudienceClient class is used to manage and verify audiencess for the Torque API.
Example
Constructors
new TorqueAudienceClient()
Create a new instance of the TorqueAdminClient class with the provided API key.
Parameters
Parameter | Type | Description |
---|---|---|
| The options for the TorqueAudienceClient. |
Returns
Defined in
Properties
Property | Type |
---|---|
| |
|
|
Methods
buildAudience()
Builds an audience with the provided options.
Parameters
Parameter | Type | Description |
---|---|---|
| The options for the audience build. |
Returns
Promise
<AudienceBuildResponse
>
The response from the API.
Throws
If there is an error building the audience.
Defined in
logout()
Returns
Promise
<void
>
Defined in
verifyAudience()
Verifies the current user with the provided audience.
Parameters
Parameter | Type | Description |
---|---|---|
| The options for the audience verification. | |
|
| - |
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
Last updated