UNPKG
anger-wechat
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
封装微信api
github.com/Jon-Millent/anger-wechat
Jon-Millent/anger-wechat
anger-wechat
/
test
/
mini
/
getOpenidByCode.js
21 lines
(13 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var
AngerWechat
=
require
(
'../../index'
)
var
path =
require
(
'path'
)
var
weixinApi =
new
AngerWechat
({
appId
:
''
,
appSecret
:
''
, })
async
function
index
(
) {
let
info =
await
weixinApi.
Mini
.
getOpenidByCode
({
code
:
''
})
console
.
log
(info) }
index
()