Пример #1
0
        internal async Task <GetSyncVariantInformationResponse> GetSyncVariantInfo(
            GetSyncVariantInformationRequest request)
        {
            if (request == null)
            {
                throw new Exception("No data provided to API");
            }

            var idString = PrintfulIdHelper.GetIdOrExternalId(request.VariantId, request.ExternalId);

            var apiResponse = await _client.GetAsync <GetSyncVariantInformationResponse>($"store/variants/{idString}");

            return(apiResponse);
        }
Пример #2
0
        public async Task <GetSyncVariantInformationResponse> GetSyncVariantInfo(GetSyncVariantInformationRequest request)
        {
            var result = await _productService.GetSyncVariantInfo(request);

            return(result);
        }