Get the /product/<product> resource from LTD Keeper.
541359
def get_product(config):
    
    product_url = config['keeper_url'] + '/products/{p}'.format(
        p=config['ltd_product'])
    r = requests.get(product_url)
    if r.status_code != 200:
        raise RuntimeError(r.json())
    product_info = r.json()
    return product_info
954624
def _ensure_product_string(cls, product):
        

        if isinstance(product, str):
            return product

        if isinstance(product, list):
            return os.path.join(*product)

        raise DataError("Unknown object (not str or list) specified as a component product", product=product)
559433
public function aroundGetProductPrice(
        \Magento\Catalog\Block\Product\ListProduct $subject,
        \Closure $proceed,
        \Magento\Catalog\Model\Product $product
    ) {
        $result = $proceed($product);
        $canSeePv = $this->hlpCust->canSeePv();
        if ($canSeePv) {
            $domId = "prxgt_pv_" . $product->getId();
            $pvProd = $product->getData(AProdCollFactory::A_PV_PRODUCT);
            $pvProd = $this->hlpFormat->toNumber($pvProd);
            $html = "<div id=\"$domId\"><span>$pvProd</span> PV</div>";
            $result = $html . $result;
        }
        return $result;
    }
445342
public static String getProductVersion(RepositoryResource installResource) {
        String resourceVersion = null;
        try {
            Collection<ProductDefinition> pdList = new ArrayList<ProductDefinition>();
            for (ProductInfo pi : ProductInfo.getAllProductInfo().values()) {
                pdList.add(new ProductInfoProductDefinition(pi));
            }
            resourceVersion = installResource.getAppliesToVersions(pdList);
        } catch (Exception e) {
            logger.log(Level.FINEST, e.getMessage(), e);
        }

        if (resourceVersion == null)
            resourceVersion = InstallConstants.NOVERSION;

        return resourceVersion;
    }
1057421
public function getProduct($installation, $product, $token)
    {
        $response = $this->fetchDocument(
            '/v4/installations/' . $installation . '/products/' . $product,
            $token,
            'getProduct'
        );

        return ProductEntity::make($response);
    }
748501
public function getProductOrderBook(RequestProduct $product) {
        return $this->get(['products', $product->getProductId(), 'book'], ResponseProductOrderBook::class, $product->toArray());
    }
654444
public function getSearchableProducts($storeId, $productIds = null, $fromId = 0, $limit = 1000)
    {
        $select = $this->getConnection()->select()
            ->from(['e' => $this->getTable('catalog_product_entity')]);

        $this->addIsVisibleInStoreFilter($select, $storeId);

        if ($productIds !== null) {
            $select->where('e.entity_id IN (?)', $productIds);
        }

        $select->limit($limit);
        $select->where('e.entity_id > ?', $fromId);
        $select->order('e.entity_id');

        return $this->connection->fetchAll($select);
    }
1288193
def get_all_membership_products(self, verbose=False):
        
        if not self.client.session_id:
            self.client.request_session()

        query = "SELECT Objects() FROM MembershipDuesProduct"

        membership_product_list = self.get_long_query(query, verbose=verbose)
        return membership_product_list or []
162653
private function getSearchableProducts($storeId, $productIds = null, $fromId = 0, $limit = 10000)
    {
        return $this->resourceModel->getSearchableProducts($storeId, $productIds, $fromId, $limit);
    }
107442
def perform(product_id)
      product = MercadolibreRails::Product.find(product_id)

      ml_product = MercadolibreApi::Products::Queries::Find.run!(product_id: product.mercadolibre_id)
      ml_seller = MercadolibreRails::Seller.where(
        mercadolibre_id: ml_product[:seller_id], site: product.site
      ).first_or_create

      product.update!(
        seller: ml_seller, title: ml_product[:title], price: ml_product[:price],
        currency_code: ml_product[:currency_id], sold_quantity: ml_product[:sold_quantity],
        description: ml_product[:description], status: ml_product[:status],
        latitude: ml_product.dig(:geolocation, :latitude), longitude: ml_product.dig(:geolocation, :longitude)
      )

      ml_product[:pictures].each do |picture|
        MercadolibreRails::Picture.where(url: picture[:url], product_id: product_id).first_or_create
      end
    end
595938
def _find_or_create_version(self, product):
        
        tag = self.options["tag"]

        label = self.project_config.get_version_for_tag(tag)
        result = self._call_api(
            "GET", "/versions", params={"product": product["id"], "label": label}
        )
        if len(result["data"]) == 0:
            version = self._call_api(
                "POST",
                "/versions",
                json={
                    "product": product["url"],
                    "label": label,
                    "description": self.options.get("description", ""),
                    "is_production": True,
                    "commit_ish": tag,
                    "is_listed": False,
                },
            )
            self.logger.info("Created {}".format(version["url"]))
        else:
            version = result["data"][0]
            self.logger.info("Found {}".format(version["url"]))
        return version
262885
def get_resources(cls):
        """"""
        my_plurals = resource_helper.build_plural_mappings(
            {}, RESOURCE_ATTRIBUTE_MAP)
        attributes.PLURALS.update(my_plurals)
        attr_map = RESOURCE_ATTRIBUTE_MAP
        ext_resources = resource_helper.build_resource_info(my_plurals,
                                                            attr_map,
                                                            constants.A10_CERTIFICATE)

        return ext_resources
1234425
def load_product_class(self, mode):
        """"""

        product_entry = self.products[mode]

        return self._get_base_class(product_entry)
1119955
def retrieve(self):
        
        response = self.request(E.retrieveResellerRequest())
        return Reseller(response.data)
1015725
private function getProduct($productId)
    {
        if (! isset($this->products[$productId])) {
            $product = $this->productFactory->create()
                ->setStoreId($this->model->getStoreId());
            $this->productResource->load($product, $productId);
            $this->products[$productId] = $product;
        }

        return $this->products[$productId];
    }
1159133
def get_allproductandrelease(self):
        
        logger.info("Get all ProductAndReleases")
        response = self.get(PRODUCTANDRELEASE_RESOURCE_ROOT_URI, headers=self.headers)
        sr_response = response_body_to_dict(response, self.headers[HEADER_CONTENT_TYPE],
                                          xml_root_element_name=PRODUCTANDRELEASE_BODY_ROOT)
        return sr_response, response
447953
def product_version(self):
        """"""
        version_separator = '+'
        if version_separator in self.version:
            # Post product/build version separation
            return self.version.split(version_separator)[0]
        # Pre product/build version separation
        return self.version.split('-')[0]