云函数里面怎么使用小程序的api库
- 需求的场景描述(希望解决的问题)
在云函数的index.js中可以使用wx.request么
我目前想使用sendTemplateMessage这个api,但他需要一个token,于是我在云函数里面使用了wx.request来获取然后报错了,是不是我语法错了,求指教
- 希望提供的能力



在云函数的index.js中可以使用wx.request么
我目前想使用sendTemplateMessage这个api,但他需要一个token,于是我在云函数里面使用了wx.request来获取然后报错了,是不是我语法错了,求指教