Struct AuthenticateRequest
- Namespace
- Vonage.NumberVerification.Authenticate
- Assembly
- Vonage.dll
Represents a request to authenticate towards NumberVerification API.
public readonly struct AuthenticateRequest
- Inherited Members
Properties
PhoneNumber
Subscriber number in E.164 format (starting with country code). Optionally prefixed with '+'.
public PhoneNumber PhoneNumber { get; }
Property Value
Scope
The authorization scope for the token.
public string Scope { get; }
Property Value
Methods
Parse(string, string)
Parses the input into an AuthenticateRequest.
public static Result<AuthenticateRequest> Parse(string number, string tokenScope)
Parameters
Returns
- Result<AuthenticateRequest>
Success if the input matches all requirements. Failure otherwise.