{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "\n# About\n\nwework \u662f\u4e3a\u4e86\u7b80\u5316\u5f00\u53d1\u8005\u5bf9\u4f01\u4e1a\u5fae\u4fe1API\u63a5\u53e3\u7684\u4f7f\u7528\u800c\u8bbe\u8ba1\u7684\uff0cAPI\u8c03\u7528\u5e93\u7cfb\u5217\u4e4b python \u7248\u672c \u00a0 \u00a0\n\n[\u5b98\u65b9\u6587\u6863](https://work.weixin.qq.com/api/doc)\n\n# Install & Update\n\n```\npip install -U wework\n```\n\n# A Simple Example\n\n```python\nfrom wework.CorpApi import CorpApi, CORP_API_TYPE\napi = CorpApi(TestConf['CORP_ID'], TestConf['APPROVAL_APP_SECRET'])\nparams = {\"starttime\": 1566871220, \"endtime\": 1566874224}\nresponse = api.httpCall(CORP_API_TYPE['GET_APPROVAL_DATA'], params)\n```\n\n\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\u53c2\u8003examples\u8def\u5f84\u4e0b\u7684\u6837\u4f8b\n\n# \u5173\u4e8etoken\u7684\u7f13\u5b58\n\ntoken\u662f\u9700\u8981\u7f13\u5b58\u7684\uff0c\u4e0d\u80fd\u6bcf\u6b21\u8c03\u7528\u90fd\u53bb\u83b7\u53d6token\uff0c[\u5426\u8005\u4f1a\u4e2d\u9891\u7387\u9650\u5236](https://work.weixin.qq.com/api/doc#10013/%E7%AC%AC%E5%9B%9B%E6%AD%A5%EF%BC%9A%E7%BC%93%E5%AD%98%E5%92%8C%E5%88%B7%E6%96%B0access_token) \n\u5728\u672c\u5e93\u7684\u8bbe\u8ba1\u91cc\uff0ctoken\u662f\u4ee5\u7c7b\u91cc\u7684\u4e00\u4e2a\u53d8\u91cf\u7f13\u5b58\u7684\n\u6bd4\u5982api/src/CorpApi.py \u91cc\u7684access_token\u53d8\u91cf\n\u5728\u7c7b\u7684\u751f\u547d\u5468\u671f\u91cc\uff0c\u8fd9\u4e2aaccessToken\u90fd\u662f\u5b58\u5728\u7684\uff0c \u5f53\u4e14\u4ec5\u5f53\u53d1\u73b0token\u8fc7\u671f\uff0cCorpAPI\u7c7b\u4f1a\u81ea\u52a8\u5237\u65b0token\n\u5237\u65b0\u673a\u5236\u5728 api/src/AbstractApi.py\n\u6240\u4ee5\uff0c\u4f7f\u7528\u65f6\uff0c\u53ea\u9700\u8981\u5168\u5c40\u5b9e\u4f8b\u5316\u4e00\u4e2aCorpAPI\u7c7b\uff0c\u4e0d\u8981\u6790\u6784\u5b83\uff0c\u5c31\u53ef\u4e00\u76f4\u7528\u5b83\u8c03\u51fd\u6570\uff0c\u4e0d\u7528\u5173\u5fc3 token \n```\napi = CorpAPI(corpid, corpsecret);\napi.dosomething()\napi.dosomething()\napi.dosomething()\n....\n```\n\u5f53\u7136\uff0c\u5982\u679c\u8981\u66f4\u4e25\u683c\u7684\u505a\u7684\u8bdd\uff0c\u5efa\u8bae\u81ea\u884c\u4fee\u6539\uff0c\u5168\u5c40\u7f13\u5b58token\uff0c\u6bd4\u5982\u5b58redis\u3001\u5b58\u6587\u4ef6\u7b49\uff0c\u5931\u6548\u5468\u671f\u8bbe\u7f6e\u4e3a2\u5c0f\u65f6\u3002\n\n# \u6ce8\u610f\u4e8b\u9879\n\n1. WXBizMsgCrypt.py\u6587\u4ef6\u5c01\u88c5\u4e86WXBizMsgCrypt\u63a5\u53e3\u7c7b\uff0c\u63d0\u4f9b\u4e86\u7528\u6237\u63a5\u5165\u4f01\u4e1a\u5fae\u4fe1\u7684\u4e09\u4e2a\u63a5\u53e3\uff0cSample.py\u6587\u4ef6\u63d0\u4f9b\u4e86\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u4e2a\u63a5\u53e3\u7684\u793a\u4f8b\uff0cierror.py\u63d0\u4f9b\u4e86\u9519\u8bef\u7801\u3002\n2. WXBizMsgCrypt\u5c01\u88c5\u4e86VerifyURL, DecryptMsg, EncryptMsg\u4e09\u4e2a\u63a5\u53e3\uff0c\u5206\u522b\u7528\u4e8e\u5f00\u53d1\u8005\u9a8c\u8bc1\u56de\u8c03url\uff0c\u6536\u5230\u7528\u6237\u56de\u590d\u6d88\u606f\u7684\u89e3\u5bc6\u4ee5\u53ca\u5f00\u53d1\u8005\u56de\u590d\u6d88\u606f\u7684\u52a0\u5bc6\u8fc7\u7a0b\u3002\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003Sample.py\u6587\u4ef6\u3002\n3. \u52a0\u89e3\u5bc6\u534f\u8bae\u8bf7\u53c2\u8003\u4f01\u4e1a\u5fae\u4fe1\u5b98\u65b9\u6587\u6863\u3002\n4. \u672c\u4ee3\u7801\u7528\u5230\u4e86pycrypto\u7b2c\u4e09\u65b9\u5e93\uff0c\u8bf7\u5f00\u53d1\u8005\u81ea\u884c\u5b89\u88c5\u6b64\u5e93\u518d\u4f7f\u7528\u3002\n\n# \u5176\u5b83\u8bed\u8a00\u7684\u5e93\u63a8\u8350\n\n* python : https://github.com/sbzhu/weworkapi_python abelzhu@tencent.com(\u4f01\u4e1a\u5fae\u4fe1\u56e2\u961f)\n* ruby : https://github.com/mycolorway/wework MyColorway(\u4e2a\u4eba\u5f00\u53d1\u8005)\n* php : https://github.com/sbzhu/weworkapi_php abelzhu@tencent.com(\u4f01\u4e1a\u5fae\u4fe1\u56e2\u961f)\n* golang : https://github.com/sbzhu/weworkapi_golang ryanjelin@tencent.com(\u4f01\u4e1a\u5fae\u4fe1\u56e2\u961f)\n* golang : https://github.com/doubliekill/EnterpriseWechatSDK 1006401052yh@gmail.com(\u4e2a\u4eba\u5f00\u53d1\u8005)\n\n\n# Contact us\nabelzhu@tencent.com\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iamsk/wework", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "wework", "package_url": "https://pypi.org/project/wework/", "platform": "", "project_url": "https://pypi.org/project/wework/", "project_urls": { "Homepage": "https://github.com/iamsk/wework" }, "release_url": "https://pypi.org/project/wework/0.1.4/", "requires_dist": [ "requests (>=2.12.4)", "pycrypto (>=2.6)" ], "requires_python": "", "summary": "Official lib of wework.", "version": "0.1.4" }, "last_serial": 5763599, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "e5d9f22898cfc5cfbb706805ba6e813b", "sha256": "8ecea248c6b5e464cdf342a97de0b516b9bcca9c292d26aa6abf4781e54390a0" }, "downloads": -1, "filename": "wework-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e5d9f22898cfc5cfbb706805ba6e813b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18134, "upload_time": "2019-08-31T06:21:09", "url": "https://files.pythonhosted.org/packages/64/d6/9deea4505403816b465be35797cc8c82a3891ca36a74371ff1f00fda74a6/wework-0.1.3-py2.py3-none-any.whl" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "00316ef119d500e6bc620871037b46d0", "sha256": "a5af02e0c61ccdc025001f4dfb912c3ce5f817bd99610f5f25c97a65843d077d" }, "downloads": -1, "filename": "wework-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00316ef119d500e6bc620871037b46d0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18134, "upload_time": "2019-08-31T06:25:42", "url": "https://files.pythonhosted.org/packages/a8/4a/401e314b932f3b13cb90e7dd64879c8813bb7d0a6833430e1780784bb255/wework-0.1.4-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00316ef119d500e6bc620871037b46d0", "sha256": "a5af02e0c61ccdc025001f4dfb912c3ce5f817bd99610f5f25c97a65843d077d" }, "downloads": -1, "filename": "wework-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00316ef119d500e6bc620871037b46d0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18134, "upload_time": "2019-08-31T06:25:42", "url": "https://files.pythonhosted.org/packages/a8/4a/401e314b932f3b13cb90e7dd64879c8813bb7d0a6833430e1780784bb255/wework-0.1.4-py2.py3-none-any.whl" } ] }