微信相关接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
373 B

  1. package wechat
  2. import (
  3. "testing"
  4. )
  5. func Test_GetMpUserInfo(t *testing.T) {
  6. access_token := "56_V9X_7MOCa4iAxPTycxgtjftFrt_68u_T64EqSBmU-qTCF1wEG9vsfxv-4UbnEsFoTHOdwTGPkt0TCGw8fB6g9CbvipiiddE0iStdHdD_F4fnYbMqQqJ8cP9CmvM73KQJphXExnUk8Li4bmASBAGaAFAJIO"
  7. openid := "ocUSI5LIiU6mDPt8lFEaP9Y8mIcQ"
  8. ret, err := GetMpUserInfo(access_token, openid)
  9. t.Log(ret)
  10. t.Log(err)
  11. }