hsamson

How to use the AuditService.GetAudit()?

0 votes
I am wanting to get information from the audit service for use within my application, but I'm not certain exactly how to use it. Can anyone provide an example? Thanks, Homer

Approved Answer

Reply to: How to use the AuditService.GetAudit()?

1 votes
Try something like this:
EslClient eslClient = new EslClient(apiKey, apiUrl);
PackageId packageId = new PackageId("YOUR_PACKAGE_ID");
List myaudit2 = eslClient.AuditService.GetAudit(packageId);
List.Enumerator myenum = myaudit2.GetEnumerator();
while(myenum.MoveNext())
{
                Debug.WriteLine("DateTime - " + myenum.Current.dateTime + ", Type - " + myenum.Current.type + ", User - " + myenum.Current.user + ", Email - " + myenum.Current.email + ", IP - " + myenum.Current.ip + ", Target - " + myenum.Current.target + ", Data - " + myenum.Current.data);
}
Hope this helps!

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off