public RecurlyClient(string sAPIKey) { mRESTClient = new RestClient(); mRESTClient.BaseUrl = RECURLY_BASE_URL; mRESTClient.AddDefaultHeader("Accept", "application/xml"); mRESTClient.AddDefaultHeader("Content-Type", "application/xml; charset=utf-8"); mRESTClient.Authenticator = new HttpBasicAuthenticator(sAPIKey, string.Empty); mSerializer = new YAXRestSerializer(); mRESTClient.AddHandler("application/xml", mSerializer); mRESTClient.AddHandler("text/xml", mSerializer); }
internal CouponsManager(RestClient restClient, YAXRestSerializer serializer, string sResource) : base(restClient, serializer, sResource) { }
internal PlansManager(RestClient restClient, YAXRestSerializer serializer, string sResource) : base(restClient, serializer, sResource) { }
internal AbstractManager(RestClient restClient, YAXRestSerializer serializer, string sResource) { this.mRestClient = restClient; this.mSerializer = serializer; this.mResource = sResource; }