Class RedactClient
Represents a client for the Vonage Redact API, enabling removal of personal data from the Vonage platform.
public class RedactClient : IRedactClient
- Inheritance
-
RedactClient
- Implements
- Inherited Members
Constructors
RedactClient(Credentials)
Initializes a new instance of the RedactClient class.
public RedactClient(Credentials creds = null)
Parameters
credsCredentialsOptional credentials to use for authentication.
Properties
Credentials
Gets or sets the credentials used for authenticating API requests.
public Credentials Credentials { get; set; }
Property Value
Methods
RedactAsync(RedactRequest, Credentials)
Redacts a specific transaction record from the Vonage platform.
public Task<bool> RedactAsync(RedactRequest request, Credentials creds = null)
Parameters
requestRedactRequestThe redaction request containing the transaction ID, product, and type. See RedactRequest.
credsCredentialsOptional credentials to override the default client credentials.
Returns
Examples
var request = new RedactRequest
{
Id = "00A0B0C0",
Product = RedactionProduct.Sms,
Type = RedactionType.Outbound
};
var success = await client.RedactClient.RedactAsync(request);
- See Also