예제 #1
0
        public async Task <Core.DataModel.Empty> UpdateConsents(string customerId, DataModel.Contexts.CustomerConsentUpdate udpate)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}/consents", Uri.EscapeDataString(customerId)));

            return(await this.client.DoPutRequest <Core.DataModel.Empty, DataModel.Contexts.CustomerConsentUpdate>(uriBuilder.Uri, udpate).ConfigureAwait(false));
        }
예제 #2
0
        public void UpdateConsents(string customerId, DataModel.Contexts.CustomerConsentUpdate udpate, Action <ApiResponse <Core.DataModel.Empty> > callback)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}/consents", UriBuilderExtension.EnsureEscapedDataString("customerId", customerId)));

            this.client.DoPutRequest(uriBuilder.Uri, udpate, callback);
        }