Class Verify
- Namespace
- Vonage.Applications.Capabilities
- Assembly
- Vonage.dll
Represents the Verify capability for an application. Configures webhooks for verification status updates.
public class Verify : Capability
- Inheritance
-
Verify
- Inherited Members
Constructors
Verify()
Initializes a new instance of the Verify class.
public Verify()
Verify(IDictionary<Type, Webhook>)
Initializes a new instance of the Verify class with the specified webhooks.
public Verify(IDictionary<Webhook.Type, Webhook> webhooks)
Parameters
webhooksIDictionary<Webhook.Type, Webhook>The webhook configuration dictionary.
Properties
Version
The version of the Verify API to use. For example: "v2".
[JsonProperty("version", Order = 0)]
public string Version { get; set; }
Property Value
Methods
Build()
Creates a new Verify capability builder for fluent configuration.
public static Verify Build()
Returns
- Verify
A new Verify capability instance.
Examples
var verifyCapability = Verify.Build()
.WithVersion("v2")
.WithStatusUrl("https://example.com/webhooks/status");
WithStatusUrl(string)
Sets the status URL webhook. Vonage will send Verify status updates to this URL.
public Verify WithStatusUrl(string url)
Parameters
urlstringThe webhook URL that will receive verification status updates.
Returns
- Verify
The Verify capability instance for fluent chaining.
Examples
var verify = Verify.Build()
.WithStatusUrl("https://example.com/webhooks/status");
WithVersion(string)
Sets the version of the Verify API.
public Verify WithVersion(string version)
Parameters
versionstringThe version of the Verify API to use. For example: "v2".
Returns
- Verify
The Verify capability instance for fluent chaining.
Examples
var verify = Verify.Build()
.WithVersion("v2");