public Entity(Config config) { _config = config; _restClient = new RestClient(string.Empty, HttpVerb.POST); _restClient.AddParameter("client_id", _config.ClientId); _restClient.AddParameter("client_secret", _config.ClientSecret); _restClient.AddParameter("type_name", _config.TypeName); }
public Authenticater(Config configuration) { if(configuration != null) _configuration = configuration; //_restClient = new RestClient(_configuration.Endpoint, HttpVerb.POST); _restClient = new RestClient(_configuration.Endpoint, OAUTH_TOKEN_COMMAND, HttpVerb.POST); _restClient.AddParameter("client_id", _configuration.ClientId); _restClient.AddParameter("client_secret", _configuration.ClientSecret); }