{ "info": { "author": "Juntao Liu", "author_email": "jinuljt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\u5fae\u4fe1\u7f51\u9875\u6388\u6743\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u5c01\u88c5\n=====\n\n\u5bf9\u5fae\u4fe1\u7f51\u9875\u6388\u6743\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u63a5\u53e3\u7684\u5c01\u88c5\n\n* \u751f\u6210\u6388\u6743URL\n* \u83b7\u53d6access_token\n* \u5237\u65b0access_token\n* \u83b7\u53d6\u7528\u6237\u4fe1\u606f\n\n\u5fae\u4fe1\u6587\u6863\n---\n[http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html](http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html)\n\n\n\u4f7f\u7528\u65b9\u5f0f\n===\n\n```\nfrom wechat_web_auth import Wechat\n\nwc = Wechat(app_id, secret)\n\ndef connect(request):\n url = wc.get_connect_url(\"http://redirect.url/)\n return redirect(url)\n\ndef callback(request):\n resp = wc.get_access_token(self, request.GET.get('code'))\n access_token = resp.access_token\n userinfo = wc.get_userinfo(access_token)\n\treturn HttpResponse(\"nickname:\" + userinfo.nickname)\n\n```", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jinuljt/wechat-web-auth", "keywords": "wechat,web auth", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "wechat-web-auth", "package_url": "https://pypi.org/project/wechat-web-auth/", "platform": "any", "project_url": "https://pypi.org/project/wechat-web-auth/", "project_urls": { "Homepage": "https://github.com/jinuljt/wechat-web-auth" }, "release_url": "https://pypi.org/project/wechat-web-auth/0.1.1/", "requires_dist": [ "requests" ], "requires_python": null, "summary": "\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7f51\u9875\u6388\u6743\u83b7\u53d6\u7528\u6237\u4fe1\u606fpython\u5c01\u88c5", "version": "0.1.1" }, "last_serial": 1656881, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0caf013ce427c1735d9287f83cfac9cd", "sha256": "78360d02b4d3a8257ca523cdac790978462ed5c6c7d0a6d31ab4c700b3d29a95" }, "downloads": -1, "filename": "wechat_web_auth-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "0caf013ce427c1735d9287f83cfac9cd", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5117, "upload_time": "2015-07-30T03:39:49", "url": "https://files.pythonhosted.org/packages/49/c6/7c684334fd5481ce29675fb2c6ff507c5d3c28caa0f0596b6a542a9d69a0/wechat_web_auth-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e561a0be20edfb1361725669bb70e005", "sha256": "094ebcef246ad601d33e0a1f0b7d1479caba38ad34a696e17f6365ef4ef5f1c4" }, "downloads": -1, "filename": "wechat_web_auth-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e561a0be20edfb1361725669bb70e005", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4522, "upload_time": "2015-07-30T03:39:44", "url": "https://files.pythonhosted.org/packages/76/f5/8b6b28ed07ec6f698a8a8bf079cf4fb883a21a9117925af8f371df14f63a/wechat_web_auth-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12100d883c2666421a142f1905dab3d2", "sha256": "1bf52b1fe3231ade00cc5b295615161cd567099d1d7f3ce71c02acfae47d119c" }, "downloads": -1, "filename": "wechat_web_auth-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "12100d883c2666421a142f1905dab3d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4527, "upload_time": "2015-07-30T03:39:57", "url": "https://files.pythonhosted.org/packages/77/47/b9fc42e441bef5ba97fd63ebb449a07ac4901b749a8462a2f04a360d7704/wechat_web_auth-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72291fb56b8cca286bd2df7716f7d6d4", "sha256": "3f90867af9d13d34e287af8746570ac28905202b75105e0d37fe2800a1e6dee7" }, "downloads": -1, "filename": "wechat-web-auth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "72291fb56b8cca286bd2df7716f7d6d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2288, "upload_time": "2015-07-30T03:39:34", "url": "https://files.pythonhosted.org/packages/6a/f6/7f439bc4d59ad1d7bccbe3176c24bb2404a9b70be84adb0cdcd1000c60c0/wechat-web-auth-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "424f28d7fcb1d64039b401a5a5c92c56", "sha256": "3b049fee6cb3fccc5316a5980573a6041e4e87aadb36505549c7c61cdcb976d1" }, "downloads": -1, "filename": "wechat_web_auth-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "424f28d7fcb1d64039b401a5a5c92c56", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4522, "upload_time": "2015-07-30T15:11:57", "url": "https://files.pythonhosted.org/packages/d3/85/645d7b4716693e5fabc4114a3c902657a010d2659c7abde416b538c8f8db/wechat_web_auth-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "607694ba7e7f733297f551baebbcd93a", "sha256": "78b90bd0d42f2037343ead21960dc969b3efef0d41538b3e040fd5c074658c40" }, "downloads": -1, "filename": "wechat_web_auth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "607694ba7e7f733297f551baebbcd93a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4526, "upload_time": "2015-07-30T15:12:03", "url": "https://files.pythonhosted.org/packages/48/f2/9911e2b6bde4544e7d929a03da7f34178cc587a4925be89d87c05e27333c/wechat_web_auth-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "424f28d7fcb1d64039b401a5a5c92c56", "sha256": "3b049fee6cb3fccc5316a5980573a6041e4e87aadb36505549c7c61cdcb976d1" }, "downloads": -1, "filename": "wechat_web_auth-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "424f28d7fcb1d64039b401a5a5c92c56", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4522, "upload_time": "2015-07-30T15:11:57", "url": "https://files.pythonhosted.org/packages/d3/85/645d7b4716693e5fabc4114a3c902657a010d2659c7abde416b538c8f8db/wechat_web_auth-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "607694ba7e7f733297f551baebbcd93a", "sha256": "78b90bd0d42f2037343ead21960dc969b3efef0d41538b3e040fd5c074658c40" }, "downloads": -1, "filename": "wechat_web_auth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "607694ba7e7f733297f551baebbcd93a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4526, "upload_time": "2015-07-30T15:12:03", "url": "https://files.pythonhosted.org/packages/48/f2/9911e2b6bde4544e7d929a03da7f34178cc587a4925be89d87c05e27333c/wechat_web_auth-0.1.1-py2.py3-none-any.whl" } ] }