コード例 #1
0
        public void Create(string code, DataModel.Contexts.VoucherCreate voucher, Action <ApiResponse <DataModel.Voucher> > callback)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/vouchers/{0}", UriBuilderExtension.EnsureEscapedDataString("code", code)));

            this.client.DoPostRequest(uriBuilder.Uri, voucher, callback);
        }
コード例 #2
0
        public void Create(DataModel.Contexts.VoucherCreate voucher, Action <ApiResponse <DataModel.Voucher> > callback)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder("/vouchers/");

            this.client.DoPostRequest(uriBuilder.Uri, voucher, callback);
        }