const Promise = require('bluebird')

const request = Promise.promisifyAll(require('request'))

const wxTransferResult = await request.postAsync({
url: 'https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers',
body:{user:'aaaaaa'} ,
agentOptions: {
      cert: fse.readFileSync(path.join(__dirname, '../wx_cert.pem')).toString(), 
      key: fse.readFileSync(path.join(__dirname, '../wx_key.pem')).toString()
   }
})

 

详情参考:https://www.npmjs.com/package/request

相关文章:

  • 2021-12-16
  • 2021-12-16
  • 2021-12-06
  • 2021-12-16
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-12-16
  • 2021-12-16
  • 2021-12-16
  • 2021-12-16
  • 2021-12-16
相关资源
相似解决方案