Exemplo n.º 1
0
 private void AuthenticateUser(string api_key, string api_secret) {
     try {
         ApiConnection = new aWhereApiConnection(api_key, api_secret);
     } catch (Exception exc) {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine(exc.InnerException.Message);
         Console.ResetColor();
         Console.WriteLine();
         Console.WriteLine("Press any key to Exit");
         Console.ReadKey();
         Environment.Exit(0);
     }
     Repository = new aWhereRepository(ApiConnection);
 }
Exemplo n.º 2
0
 public aWhereRepository(aWhereApiConnection ApiConnection)
 {
     this.ApiConnection = ApiConnection;
 }
Exemplo n.º 3
0
 public ApiRequest(aWhereApiConnection connection)
 {
     Connection = connection;
 }
 public aWhereRepository(aWhereApiConnection ApiConnection) {
     this.ApiConnection = ApiConnection;
 }