docs: function(to,tempId,params,callback){
      // api的url
      var timeStamp = index.createTimeStamp(cfg.timeFmt);
      var sigParameter = index
        .hashMD5(cfg.accountSid+cfg.accountToken+timeStamp)
        .toUpperCase();
  
      var url = util.format(
        '/%s/Accounts/%s/%s/%s?sig=%s',
        cfg.softVersion,
        cfg.accountSid,
        cfg.func,
        cfg.funcdes,
        sigParameter
      );
  
      // http头
      var authBuff = new Buffer(cfg.accountSid+':'+timeStamp);
      var authcode = authBuff.toString('base64');
  
      // jscs:disable
      var headers = {
        'Accept':'application/json',
        'Content-Type':'application/json;charset=utf-8',
        'Authorization':authcode,
      };
      // jscs:enable
  
      var code = smsCodeGen();
  
      // api调用参数
      var body = {
        to:to,
        templateId:tempId.toString(),
        appId:cfg.appId,
        datas:params,
      };
  
      // request调用信息:post选项
      var postOptions = {
        method: 'POST',
        baseUrl:cfg.serverIP+':'+cfg.serverPort,
        url: url,
        json:true,
        body:body,
        headers:headers,
      };
      request(postOptions, function(err,res,body){
        err = getSmsInfo(body);
        callback(err,body);
      });
    }