Struct GetUserRequest
Represents a request to retrieve a specific user by their unique identifier.
public readonly struct GetUserRequest : IVonageRequest
- Implements
- Inherited Members
Properties
UserId
The unique identifier of the user to retrieve (e.g., "USR-12345678-1234-1234-1234-123456789012").
public string UserId { get; }
Property Value
Methods
BuildRequestMessage()
Converts the request to a HttpRequest.
public HttpRequestMessage BuildRequestMessage()
Returns
- HttpRequestMessage
The Http request.
Parse(string)
Creates a GetUserRequest from the specified user ID.
public static Result<GetUserRequest> Parse(string userId)
Parameters
userIdstringThe unique identifier of the user to retrieve. Must not be empty.
Returns
- Result<GetUserRequest>
A result containing the GetUserRequest on success, or validation error details if the user ID is empty.