Skip to content

Want to support Wechat applet #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
einsqing opened this issue Apr 13, 2019 · 5 comments
Closed

Want to support Wechat applet #793

einsqing opened this issue Apr 13, 2019 · 5 comments

Comments

@einsqing
Copy link
Contributor

Want to support Wechat applet !!!
doc https://developers.weixin.qq.com/miniprogram/en/dev/index.html?t=19041222

@dplewis
Copy link
Member

dplewis commented Apr 13, 2019

Duplicate #530

Have you read the guide Supported 3rd Party Authentication? If it is unclear please let us know.

const user = await new Parse.User()._linkWith('wechat', {
  authData: {
    id: '',
    access_token: '' // get your own access token
  }
});

@dplewis dplewis closed this as completed Apr 13, 2019
@einsqing
Copy link
Contributor Author

@dplewis Not this one,Read the document, please https://developers.weixin.qq.com/miniprogram/en/dev/index.html?t=19041222。

The reference for sending requests from the Wechat miniprogram is as follows: XHR cannot be used。

wx.request({
  url: 'test.php', // 仅为示例,并非真实的接口地址
  data: {
    x: '',
    y: ''
  },
  header: {
    'content-type': 'application/json' // 默认值
  },
  success(res) {
    console.log(res.data)
  }
})

@einsqing
Copy link
Contributor Author

@dplewis Need to adapt localStorage and request

@dplewis dplewis reopened this Jul 23, 2019
@dplewis
Copy link
Member

dplewis commented Jul 23, 2019

When you say support are you referring to linking with / authentication? I can try to look into that and write a test

@dplewis
Copy link
Member

dplewis commented Jul 28, 2019

Closing via #874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants