コード例 #1
0
        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);
        }
コード例 #2
0
 internal CouponsManager(RestClient restClient, YAXRestSerializer serializer, string sResource)
     : base(restClient, serializer, sResource)
 {
 }
コード例 #3
0
 internal PlansManager(RestClient restClient, YAXRestSerializer serializer, string sResource)
     : base(restClient, serializer, sResource)
 {
 }
コード例 #4
0
 internal AbstractManager(RestClient restClient, YAXRestSerializer serializer, string sResource)
 {
     this.mRestClient = restClient;
     this.mSerializer = serializer;
     this.mResource   = sResource;
 }