Skip to content

Instantly share code, notes, and snippets.

@MikeLarned
Created July 1, 2016 17:15
Show Gist options
  • Save MikeLarned/51463ade6ddce6e209c916446f066d26 to your computer and use it in GitHub Desktop.
Save MikeLarned/51463ade6ddce6e209c916446f066d26 to your computer and use it in GitHub Desktop.
var auth = new RequestAuthentication
{
Item = new XDDSAuthType
{
RequesterID = new UIDType
{
aliasType = OpenTextAccount.AliasType,
Value = _rootAccount.Username
},
Password = _rootAccount.Password
}
};
var request = new Request();
var response = new Response();
var userInfoRequest = new UserInfoRequest();
var userInfoResult = new UserInfoResult();
request.ReceiverKey = _service.Url;
request.Authentication = auth;
_service.RequestValue = request;
_service.ResponseValue = response;
var userAlias = new UserAliasType
{
Item = _account.UserId.ToString() // Uint of user id
};
userInfoRequest.UserAlias = userAlias;
try
{
userInfoResult = _service.UserInfo(userInfoRequest);
}
catch (Exception exception)
{
throw exception;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment