Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public async Task <GetSyncVariantInformationResponse> GetSyncVariantInfo(GetSyncVariantInformationRequest request)
        {
            var result = await _productService.GetSyncVariantInfo(request);

            return(result);
        }