var model = new ParticipantEncryptedCredentialsRequestModel()
{
Credentials = new ParticipantCredentialsModel[]
{
new ParticipantCredentialsModel()
{
ParticipantID = 1234567890,
Password = "p@ssword123", //If your password is hashed, pass that instead.
Username = "johnsmith" //username is only required for RegisteredUser auth
}
}
};
var results = serviceClient.GetParticipantEncryptedCredentials(sa, model);
if (results.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
'If your password is hashed, pass that instead.
'username is only required for RegisteredUser auth
Dim model = New ParticipantEncryptedCredentialsRequestModel() With {
.Credentials = New ParticipantCredentialsModel() {New ParticipantCredentialsModel() With {
.ParticipantID = 1234567890,
.Password = "p@ssword123",
.Username = "johnsmith"
}}
}
Dim results = serviceClient.GetParticipantEncryptedCredentials(sa, model)
If Not results.IsSuccessful Then
'do work...
Else
'handle error
End If