Example #1
0
 public ApiClient(string apiKey, ContractResolver resolver)
 {
     _apiKey   = apiKey;
     _resolver = resolver;
     Serializer.ContractResolver = resolver;
     Serializer.Converters.Add(new StringEnumConverter {
         CamelCaseText = true
     });
     HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
 internal CustomFieldConfigurator(ContractResolver resolver)
 {
     _resolver = resolver;
 }