taobao.product.get 获取一个产品的信息
        
        两种方式查看一个产品详细信息: 传入product_id来查询 传入cid和props来查询
486240
def get(self, fields=[], product_id=None, cid=None, props=None):
        ''''''
        request = TOPRequest('taobao.product.get')
        if not fields:
            fields = self.fields
        request['fields'] = fields
        if product_id!=None: request['product_id'] = product_id
        if cid!=None: request['cid'] = cid
        if props!=None: request['props'] = props
        self.create(self.execute(request)['product'])
        return self
898369
def sku_update(self, product_id, properties, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.product.sku.update')
        request['product_id'] = product_id
        request['properties'] = properties
        for k, v in kwargs.iteritems():
            if k not in ('quantity', 'standard_price', 'agent_cost_price', 'sku_number', 'dealer_cost_price') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['result','created'], models={'created':TOPDate})
        return self
1319543
def get_item_with_id(self, uid):
        
        for item in self.get_items():
            if item.id == uid:
                return item

        return None
194036
def update_product(product_id, **kwargs):
    
    content = update_product_raw(product_id, **kwargs)
    if content:
        return utils.format_json(content)
740890
def get(self, cid, pvs=None, fields=[]):
        ''''''
        request = TOPRequest('taobao.itempropvalues.get')
        if not fields:
            propValue = PropValue()
            fields = propValue.fields
        request['fields'] = fields
        if pvs!=None:
            request['pvs'] = pvs
        request['cid'] = cid
        self.create(self.execute(request))
        return self.prop_values
428560
def delete(self, num_iid, properties, session, item_price=None, item_num=None, lang=None):
        ''''''
        request = TOPRequest('taobao.item.sku.delete')
        request['num_iid'] = num_iid
        request['properties'] = properties
        if item_num!=None:
            request['item_num'] = item_num
        if item_price!=None:
            request['item_price'] = item_price
        if lang!=None:
            request['lang'] = lang
        self.create(self.execute(request, session)['sku'])
        return self
697665
def sku_delete(self, product_id, properties, session):
        ''''''
        request = TOPRequest('taobao.fenxiao.product.sku.delete')
        request['product_id'] = product_id
        request['properties'] = properties
        self.create(self.execute(request, session), fields=['result','created'], models={'created':TOPDate})
        return self
949294
protected static function deleteProductByIdAsyncWithHttpInfo($product_id) 
    {
        $returnType = '';  
        $request = self::deleteProductByIdRequest($product_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
78373
def update(self, pid, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.product.update')
        request['pid'] = pid
        for k, v in kwargs.iteritems():
            if k not in ('name', 'standard_price', 'cost_price', 'retail_price_low', 'retail_price_high', 'outer_id', 'quantity', 'alarm_number','desc','prov','city','postage_type','postage_id','postage_ordinary','postage_fast','postage_ems','status','sku_ids','sku_cost_prices','sku_quantitys','sku_outer_ids','have_invoice','have_guarantee','discount_id','sku_standard_prices','sku_properties','sku_properties_del','is_authz','pic_path','image','properties','property_alias','input_properties','dealer_cost_price','sku_dealer_cost_prices','category_id') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['pid','modified'], models={'modified':TOPDate})
        return self
402040
def get(self, tid, is_detail, session):
        ''''''
        request = TOPRequest('taobao.trade.confirmfee.get')
        request['tid'] = tid
        request['is_detail'] = is_detail
        self.create(self.execute(request, session)['trade_confirm_fee'])
        return self
62023
def get(self, session, fields=None):
        ''''''
        request = TOPRequest('taobao.fenxiao.productcats.get')
        if fields: request['fields'] = fields
        self.create(self.execute(request, session))
        return self.productcats
693018
def get(self, nicks, session):
        ''''''
        request = TOPRequest('taobao.fenxiao.distributors.get')
        request['nicks'] = nicks
        self.create(self.execute(request, session))
        return self.distributors
881503
function (params, successCallback, failCallback) {
    var t$ = this;
    if (!t$._check(params.productIdentifier)) { return }

    // ////////////////////////////////////////////////////////////////////////////
    var _cb = function (obj) {
      try {
        $bc_$2.IAP.NoticeCenter().remove(_cb);
        if (lodash.isObject(obj)) {
          var info = obj.info;
          var notifyType = obj.notifyType;

          if (info.productIdentifier === params.productIdentifier) {
            if (notifyType === t$.MessageType['ProductPurchased']) {
              successCallback && successCallback(info.productIdentifier, obj);
            } else if (t$.MessageType['ProductPurchaseFailed']) {
              failCallback && failCallback(info.productIdentifier, obj);
            }
          }
        }
      } catch (e) {
        console.error(e);
      }
    };

    // 注册一个消息回调
    $bc_$2.IAP.NoticeCenter().add(_cb);

    if ($bc_$2.pN) {
      // 发送购买请求
      $bc_$2.pN.iap.buyProduct(JSON.stringify({
        identifier: params.productIdentifier,
        quantity: params.quantity || 1
      }));
    } else {
      console.log('Romanysoft SDK simulation environment....');
      var obj = window.localStorage.getItem($bc_$2.IAP_SE_KEY) || JSON.stringify({});

      $bc_$2.IAP_SE_OBJ = JSON.parse(obj);
      var orgQuantity = 0;
      var saveQuantity = 0;
      if ($bc_$2.IAP_SE_OBJ[params.productIdentifier]) {
        orgQuantity = $bc_$2.IAP_SE_OBJ[params.productIdentifier];
        saveQuantity = orgQuantity + params.quantity || 1;
      } else {
        saveQuantity = params.quantity || 1;
      }

      $bc_$2.IAP_SE_OBJ[params.productIdentifier] = saveQuantity;
      window.localStorage.setItem($bc_$2.IAP_SE_KEY, JSON.stringify($bc_$2.IAP_SE_OBJ));

      // 模拟发送成功购买信息
      $bc_$2.IAP_SE_Wrapper.caller().fire({
        notifyType: t$.MessageType['ProductPurchased'],
        info: {
          productIdentifier: params.productIdentifier,
          quantity: saveQuantity
        }
      });

      // 模拟发送购买完成信息
      $bc_$2.IAP_SE_Wrapper.caller().fire({
        notifyType: t$.MessageType['ProductCompletePurchased'],
        info: {
          productIdentifier: params.productIdentifier,
          transactionId: 'transactionId' + Math.round(999),
          receipt: 'receipt' + Math.round(999)
        }
      });
    }
  }
391242
def get(self, session):
        ''''''
        request = TOPRequest('taobao.aftersale.get')
        self.create(self.execute(request, session))
        return self.after_sales
242773
def load_product_object(self, name):
        """"""

        product_entry = self.products[name]

        product = self._get_base_object(product_entry)

        return product
756462
def devid(self):
        
        d = self.device
        vend_id = d.get('ID_VENDOR_ID')
        model_id = d.get('ID_MODEL_ID')
        return (vend_id, model_id)
1226825
def refunds_get(self, **kwargs):
        ''''''
        request = TOPRequest('taobao.increment.refunds.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'nick', 'start_modified', 'end_modified', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['notify_refunds', 'total_results'], models={'notify_refunds':NotifyRefund})
        return self.notify_refunds