taobao.postages.get 获取卖家的运费模板
        
        获得当前会话用户的所有邮费模板
493932
def get(self, session, fields=[]):
        ''''''
        request = TOPRequest('taobao.postages.get')
        if not fields:
            postage = Postage()
            fields = postage.fields
        request['fields'] = fields
        self.create(self.execute(request, session))
        return self.postages
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
902967
function getParams(req, all) {
  const val = { query: {}, body: {}, params: {}, all: {} };
  if (all) {
    // 获取全部参数
    for (const k in req.query) {
      val.query[k] = req.query[k];
      val.all[k] = req.query[k];
    }
    for (const k in req.body) {
      val.body[k] = req.body[k];
      val.all[k] = req.body[k];
    }
    for (const k in req.params) {
      val.params[k] = req.params[k];
      val.all[k] = req.params[k];
    }
  } else {
    if (req.method === 'GET') {
      val.query = req.query;
      val.all = req.query;
    } else {
      val.body = req.body;
      val.all = req.body;
    }
    // 所有method都应该获取req.params
    for (const k in req.params) {
      val.params[k] = req.params[k];
      val.all[k] = req.params[k];
    }
  }
  return val;
}
1324600
def subsc_search(self, article_code, **kwargs):
        ''''''
        request = TOPRequest('taobao.vas.subsc.search')
        request['article_code'] = article_code
        for k, v in kwargs.iteritems():
            if k not in ('item_code', 'nick', 'start_deadline', 'end_deadline', 'status', 'autosub', 'expire_notice', 'page_size','page_no') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['article_subs','total_item'], models={'article_subs':ArticleSub})
        return self.article_subs
1057527
def shippingaddress_update(self, tid, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.trade.shippingaddress.update')
        request['tid'] = tid
        for k, v in kwargs.iteritems():
            if k not in ('receiver_name','receiver_phone','receiver_mobile','receiver_state','receiver_city','receiver_district','receiver_address','receiver_zip') or v==None: continue
            request[k] = v
        self.create(self.execute(request, session)['trade'])
        return self
252686
def from_array(array):
        
        if array is None or not array:
            return None
        # end if
        assert_type_or_raise(array, dict, parameter_name="array")
        from pytgbot.api_types.receivable.payments import ShippingAddress
        

        data = {}
        data['name'] = u(array.get('name')) if array.get('name') is not None else None
        data['phone_number'] = u(array.get('phone_number')) if array.get('phone_number') is not None else None
        data['email'] = u(array.get('email')) if array.get('email') is not None else None
        data['shipping_address'] = ShippingAddress.from_array(array.get('shipping_address')) if array.get('shipping_address') is not None else None
        data['_raw'] = array
        return OrderInfo(**data)
872376
def get(self):
        
        spam_check = {}
        if self.enable is not None:
            spam_check["enable"] = self.enable

        if self.threshold is not None:
            spam_check["threshold"] = self.threshold.get()

        if self.post_to_url is not None:
            spam_check["post_to_url"] = self.post_to_url.get()
        return spam_check
835253
function sendTemplateSMS($to,$datas,$tempId)
    {
        //主帐号鉴权信息验证，对必选参数进行判空。
        $auth=$this->accAuth();
        if($auth!=""){
            return $auth;
        }
        // 拼接请求包体
        if($this->BodyType=="json"){
           $data="";
           for($i=0;$i<count($datas);$i++){
              $data = $data. "'".$datas[$i]."',";
           }
           $body= "{'to':'$to','templateId':'$tempId','appId':'$this->AppId','datas':[".$data."]}";
        }else{
           $data="";
           for($i=0;$i<count($datas);$i++){
              $data = $data. "<data>".$datas[$i]."</data>";
           }
           $body="<TemplateSMS>
                    <to>$to</to> 
                    <appId>$this->AppId</appId>
                    <templateId>$tempId</templateId>
                    <datas>".$data."</datas>
                  </TemplateSMS>";
        }
        $this->showlog("request body = ".$body);
        // 大写的sig参数
        $sig =  strtoupper(md5($this->AccountSid . $this->AccountToken . $this->Batch));
        // 生成请求URL
        $url="https://$this->ServerIP:$this->ServerPort/$this->SoftVersion/Accounts/$this->AccountSid/SMS/TemplateSMS?sig=$sig";
        $this->showlog("request url = ".$url);
        // 生成授权：主帐户Id + 英文冒号 + 时间戳。
        $authen = base64_encode($this->AccountSid . ":" . $this->Batch);
        // 生成包头
        $header = array("Accept:application/$this->BodyType","Content-Type:application/$this->BodyType;charset=utf-8","Authorization:$authen");
        // 发送请求
        $result = $this->curl_post($url,$body,$header);
        $this->showlog("response body = ".$result);
        if($this->BodyType=="json"){//JSON格式
           $datas=json_decode($result);
        }else{ //xml格式
           $datas = simplexml_load_string(trim($result," \t\n\r"));
        }
      //  if($datas == FALSE){
//            $datas = new stdClass();
//            $datas->statusCode = '172003';
//            $datas->statusMsg = '返回包体错误'; 
//        }
        //重新装填数据
        if($datas->statusCode==0){
         if($this->BodyType=="json"){
            $datas->TemplateSMS =$datas->templateSMS;
            unset($datas->templateSMS);
          }
        }

        return $datas;
    }
1135816
def send(self, tid, company_code, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.logistics.online.send')
        request['tid'] = tid
        request['company_code'] = company_code
        for k, v in kwargs.iteritems():
            if k not in ('out_sid', 'sender_id', 'cancel_id', 'feature') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['shipping', ], models={'shipping':Shipping})
        return self.shipping
1094900
def get(self, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.cooperation.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'start_date', 'end_date', 'trade_type', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['total_results','cooperations'], models={'cooperations':Cooperation})
        return self.cooperations
391242
def get(self, session):
        ''''''
        request = TOPRequest('taobao.aftersale.get')
        self.create(self.execute(request, session))
        return self.after_sales
633011
def get(self, num_iids, fields=[]):
        ''''''
        request = TOPRequest('taobao.item.sku.get')
        request['num_iids'] = num_iids
        if not fields:
            sku = Sku()
            fields = sku.fields
        request['fields'] = fields
        self.create(self.execute(request))
        return self.skus
651413
public static void tradePage(HttpServletResponse httpResponse, AlipayTradePagePayModel model, String notifyUrl,
			String returnUrl) throws AlipayApiException, IOException {
		AlipayTradePagePayRequest request = new AlipayTradePagePayRequest();
		request.setBizModel(model);
		request.setNotifyUrl(notifyUrl);
		request.setReturnUrl(returnUrl);
		String form = AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().pageExecute(request).getBody();// 调用SDK生成表单
		httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
		httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
		httpResponse.getWriter().flush();
		httpResponse.getWriter().close();
	}
679718
def get(self, fields=[]):
        ''''''
        request = TOPRequest('taobao.areas.get')
        if not fields:
            area = Area()
            fields = area.fields
        request['fields'] = fields
        self.create(self.execute(request))
        return self.areas
723064
def chatlogs_get(self, chat_id, start_date, end_date, charset, session):
        ''''''
        request = TOPRequest('taobao.wangwang.eservice.chatlog.get')
        request['chat_id'] = chat_id
        request['charset'] = charset
        request['start_date'] = start_date
        request['end_date'] = end_date
        self.create(self.execute(request, session))
        return self.chatpeers
218622
def modify(self, contact_id, contact_name, province, city, addr, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.logistics.address.modify')
        request['contact_id'] = contact_id
        request['contact_name'] = contact_name
        request['province'] = province
        request['city'] = city
        request['addr'] = addr
        for k, v in kwargs.iteritems():
            if k not in ('country', 'zip_code', 'phone', 'mobile_phone', 'seller_company', 'memo', 'get_def', 'cancel_def') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session))
        return self.address_result
451226
@Deprecated
    public GetSendMessageResponse sendMessageToUser(BaseMsg message, boolean isToAll, String groupId, String[] openIds){
        BeanUtil.requireNonNull(message, "message is null");
        LOG.debug("群发消息......");
        String url = BASE_API_URL + "cgi-bin/message/mass/sendall?access_token=#";
        final Map<String, Object> params = new HashMap<String, Object>();
        Map<String, Object> filterMap = new HashMap<String, Object>();
        filterMap.put("is_to_all", isToAll);
        if(!isToAll){
            BeanUtil.requireNonNull(groupId, "groupId is null");
            filterMap.put("group_id", groupId);
        }
        params.put("filter", filterMap);
        if(message instanceof MpNewsMsg){
            params.put("msgtype", "mpnews");
            MpNewsMsg msg = (MpNewsMsg)message;
            Map<String, Object> mpNews = new HashMap<String, Object>();
            mpNews.put("media_id", msg.getMediaId());
            params.put("mpnews", mpNews);
        }else if(message instanceof TextMsg){
            params.put("msgtype", "text");
            TextMsg msg = (TextMsg)message;
            Map<String ,Object> text = new HashMap<String, Object>();
            text.put("content", msg.getContent());
            params.put("text", text);
        }else if(message instanceof VoiceMsg){
            params.put("msgtype", "voice");
            VoiceMsg msg = (VoiceMsg)message;
            Map<String, Object> voice = new HashMap<String ,Object>();
            voice.put("media_id", msg.getMediaId());
            params.put("voice", voice);
        }else if(message instanceof ImageMsg){
            params.put("msgtype", "image");
            ImageMsg msg = (ImageMsg)message;
            Map<String, Object> image = new HashMap<String, Object>();
            image.put("media_id", msg.getMediaId());
            params.put("image", image);
        }else if(message instanceof VideoMsg){
            // TODO 此处方法特别
        }
        BaseResponse response = executePost(url, JSONUtil.toJson(params));
        String resultJson = isSuccess(response.getErrcode()) ? response.getErrmsg() : response.toJsonString();
        return JSONUtil.toBean(resultJson, GetSendMessageResponse.class);
    }