Esempio n. 1
0
 public APIBase(string name, string apikey)
 {
     Name      = name;
     Headers   = new Dictionary <string, string>();
     Endpoints = new Dictionary <string, string>();
     APIKey    = apikey;
     EndpointActionCollection = new List <EndpointAction>();
     CredentialsPostRequest   = new CredentialsPost();
 }
Esempio n. 2
0
 public APIBase(AppConfig config, string name)
 {
     Name      = name;
     _config   = config;
     Headers   = new Dictionary <string, string>();
     Endpoints = new Dictionary <string, string>();
     APIKey    = _config.Tokens[name];
     EndpointActionCollection = new List <EndpointAction>();
     CredentialsPostRequest   = new CredentialsPost();
 }