{"action":"created","issue":{"url":"https://api.github.com/repos/weflex/react-native-wechat/issues/12","labels_url":"https://api.github.com/repos/weflex/react-native-wechat/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/weflex/react-native-wechat/issues/12/comments","events_url":"https://api.github.com/repos/weflex/react-native-wechat/issues/12/events","html_url":"https://github.com/weflex/react-native-wechat/pull/12","id":123074813,"number":12,"title":"提供JS的API封装","user":{"login":"tdzl2003","id":3185808,"avatar_url":"https://avatars.githubusercontent.com/u/3185808?v=3","gravatar_id":"","url":"https://api.github.com/users/tdzl2003","html_url":"https://github.com/tdzl2003","followers_url":"https://api.github.com/users/tdzl2003/followers","following_url":"https://api.github.com/users/tdzl2003/following{/other_user}","gists_url":"https://api.github.com/users/tdzl2003/gists{/gist_id}","starred_url":"https://api.github.com/users/tdzl2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdzl2003/subscriptions","organizations_url":"https://api.github.com/users/tdzl2003/orgs","repos_url":"https://api.github.com/users/tdzl2003/repos","events_url":"https://api.github.com/users/tdzl2003/events{/privacy}","received_events_url":"https://api.github.com/users/tdzl2003/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-19T09:57:41Z","updated_at":"2015-12-19T09:59:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/weflex/react-native-wechat/pulls/12","html_url":"https://github.com/weflex/react-native-wechat/pull/12","diff_url":"https://github.com/weflex/react-native-wechat/pull/12.diff","patch_url":"https://github.com/weflex/react-native-wechat/pull/12.patch"},"body":"核心修改：\r\n1、所有的callback变为可选参数\r\n2、所有的方法都返回一个Promise"},"comment":{"url":"https://api.github.com/repos/weflex/react-native-wechat/issues/comments/165969172","html_url":"https://github.com/weflex/react-native-wechat/pull/12#issuecomment-165969172","issue_url":"https://api.github.com/repos/weflex/react-native-wechat/issues/12","id":165969172,"user":{"login":"tdzl2003","id":3185808,"avatar_url":"https://avatars.githubusercontent.com/u/3185808?v=3","gravatar_id":"","url":"https://api.github.com/users/tdzl2003","html_url":"https://github.com/tdzl2003","followers_url":"https://api.github.com/users/tdzl2003/followers","following_url":"https://api.github.com/users/tdzl2003/following{/other_user}","gists_url":"https://api.github.com/users/tdzl2003/gists{/gist_id}","starred_url":"https://api.github.com/users/tdzl2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdzl2003/subscriptions","organizations_url":"https://api.github.com/users/tdzl2003/orgs","repos_url":"https://api.github.com/users/tdzl2003/repos","events_url":"https://api.github.com/users/tdzl2003/events{/privacy}","received_events_url":"https://api.github.com/users/tdzl2003/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T09:59:46Z","updated_at":"2015-12-19T09:59:46Z","body":"因为担心影响到API兼容性，目前的修改还比较保守，将来希望能将原生接口统一为promise风格（resolve reject两个回调函数），并将对外的callback统一（目前某些API使用callback方式时不能区分是正确返回false还是发生了错误）。"}}