Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }