Author Posts

May 17, 2018 at 10:40 am

I need to check Rest Api .
the basic is — Invoke-RestMethod -Uri 'http://localhost:94/PathA/file.ashx' —

I need to add also

public class CallbackData
public string CallBackType { get; set; }
public string Reference { get; set; }
public string FrontSide { get; set; }
public VerificationData VerificationData { get; set; }

public class VerificationData
public string VerificationStatus { get; set; }

How can I combine them ?

May 19, 2018 at 1:56 pm

I'm sorry, I don't understand what you're trying to accomplish.

Are you asking how to perform Invoke-WebRequest inside the class? You'd need to define a method or a constructor inside the class, which is where you'd put your code that you want to run.