private static GSTNAuthClient GetAuth(string gstin) { GSTNAuthClient client = new GSTNAuthClient(gstin); var result = client.RequestOTP(GSTNConstants.userid); System.Console.Write("Enter OTP:"); string otp = System.Console.ReadLine(); var result2 = client.RequestToken(GSTNConstants.userid, otp); return(client); }
private static IGSTNAuthProvider GetAuth(string gstin, string gsp, string userid) { GSTNAuthClient client = new GSTNAuthClient(gstin, userid, gsp, "TEST", GSTNConstants.publicip); var result = client.RequestOTP(); System.Console.Write("Enter OTP:"); string otp = System.Console.ReadLine(); var result2 = client.RequestToken(otp); return(client); }
public static void GetOTP(string gstin, string userid) { GSTNAuthClient client = new GSTNAuthClient(gstin, userid); var result = client.RequestOTP(); }