public SamplifyClient(string clientID, string username, string password, SamplifyEnv env)
        {
            this.APIBaseURL = HostConstants.UATAPIBaseURL;
            this.AuthURL    = HostConstants.UATAuthBaseURL;
            if (this.IsProdEnvironment(env))
            {
                this.APIBaseURL = HostConstants.ProdAPIBaseURL;
                this.AuthURL    = HostConstants.ProdAuthBaseURL;
            }

            this.Credentials = new TokenRequest(clientID, username, password);
            this.Request     = new Request();
            this.Auth        = new TokenResponse();
        }
 private bool IsProdEnvironment(SamplifyEnv env)
 {
     if (env == SamplifyEnv.Prod)
     {
         return(true);
     }
     if (env == SamplifyEnv.CheckProcessEnv)
     {
         try
         {
             string val = Environment.GetEnvironmentVariable("env");
             if (val == "prod")
             {
                 return(true);
             }
             return(false);
         }
         catch { return(false); }
     }
     return(false);
 }