Пример #1
0
 public void Get()
 {
     try
     {
         HttpAPI.Get(uri);
     }
     catch (Exception e)
     {
         Debug.Log(e);
     }
 }
Пример #2
0
 public void GetWithCert(X509Certificate cert = null)
 {
     try
     {
         if (cert == null)
         {
             // Example Cert
             cert = new X509Certificate2(Path.Combine(Application.dataPath, "client.pfx"), "amoeba", X509KeyStorageFlags.MachineKeySet);
         }
         HttpAPI.Get(uri, null, null, cert);
     }
     catch (Exception e)
     {
         Debug.LogError(e);
     }
 }