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(); }
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(); }