{ "info": { "author": "Chen Weihong", "author_email": "whchen1080@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==================\r\n\u6613\u5ea6python SDK\r\n==================\r\n\r\n\u8fd9\u662f\u6574\u4e2a\u6613\u5ea6\u5e73\u53f0\u7684Python SDK\uff0c\u4f9b\u7b2c\u4e09\u65b9\u5e94\u7528\u8bbf\u95ee\u6613\u5ea6\u7684\u5404\u79cd\u670d\u52a1\u3002\r\n\r\n\u6613\u5ea6\u5f00\u653eAPI\uff0c\u57fa\u4e8eOAuth2\u534f\u8bae\u6784\u5efa\uff0c `\u53c2\u770b\u8fd9\u91cc `__\r\n\r\n\u5b89\u88c5\r\n=============\r\n\u6807\u51c6\u7684pip\u5b89\u88c5\u6d41\u7a0b::\r\n\r\n pip install edo_client\r\n\r\n\u6700\u7b80\u4f7f\u7528\u65b9\u6cd5\r\n=======================\r\n\u5982\u679c\u4f60\u77e5\u9053\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u6700\u7b80\u4f7f\u7528\u65b9\u6cd5::\r\n\r\n from edo_client import get_client\r\n\r\n\u53ef\u4ee5\u76f4\u63a5\u5f97\u5230\u5de5\u4f5c\u5e73\u53f0\u7684\u5ba2\u6237\u7aef, \u4e0a\u4f20\u6587\u4ef6\u3001\u4fee\u6539\u5c5e\u6027::\r\n\r\n wo_client = get_client('workonline', \r\n oc_api='http://192.168.1.12/oc_api', \r\n account='zopen', \r\n instance='instance', \r\n username='admin', \r\n password='admin')\r\n\r\n wo_client.content.upload('/files', filename=ur'c:\\mydoc\\abc.doc')\r\n wo_client.content.items('/files')\r\n wo_client.content.update_properties('/files', fields={'subject':['Good']})\r\n\r\n\u5982\u679c\u9700\u8981\u64cd\u4f5c\u7ec4\u7ec7\u7ed3\u6784::\r\n\r\n org_client = get_client('org', \r\n oc_api='http://192.168.1.12/oc_api', \r\n account='zopen', \r\n instance='instance', \r\n username='admin', \r\n password='admin')\r\n\r\n org_client.org.list_org_structure()\r\n\r\n\u4f7f\u7528code\u8ba4\u8bc1\r\n===============\r\n\u5047\u8bbe\u4f60\u7684\u56de\u8c03url\u662fredirect_uri::\r\n \r\n from edo_client import WoClient, OcClient\r\n\r\n api_host = 'http://192.168.1.12/oc_api'\r\n key = 'test'\r\n secret = '022127e182a934dea7d69s10697s8ac2'\r\n\r\n # \u5f97\u5230\u8ba4\u8bc1\u5730\u5740\r\n oc_client = OcClient(api_host, key, secret, redirect=redirect_uri, account='zopen', instance='default')\r\n authorize_url = oc_client.get_authorize_url()\r\n\r\n\u4f60\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eeauthorize_url\uff0c\u4f1a\u81ea\u52a8\u9644\u5e26code\u53c2\u6570\u8df3\u8f6c\u5230redirect_uri\uff0c\u7ee7\u7eed\u8ba4\u8bc1\u8fc7\u7a0b::\r\n\r\n oc_client.auth_with_code(code)", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/everydo/python-sdk", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/everydo/python-sdk", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "edo_client", "package_url": "https://pypi.org/project/edo_client/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/edo_client/", "project_urls": { "Download": "https://github.com/everydo/python-sdk", "Homepage": "https://github.com/everydo/python-sdk" }, "release_url": "https://pypi.org/project/edo_client/0.9.3/", "requires_dist": null, "requires_python": null, "summary": "SDK for easydo.cn", "version": "0.9.3" }, "last_serial": 1561069, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f7fc053b97b5c1f5785253f5ffb048a8", "sha256": "e278cd72b5ca6f83874b0bd1e7bca9e1716b3142587d139ee6af46b402a17dd9" }, "downloads": -1, "filename": "edo_client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f7fc053b97b5c1f5785253f5ffb048a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8925, "upload_time": "2014-03-05T04:45:44", "url": "https://files.pythonhosted.org/packages/fd/4e/4c8fd85cccbdf9840110246eca974f29b79a10195fd6b0f4ed322856c973/edo_client-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4be1e992efa948f2300e40f7e8ccae50", "sha256": "07394d5fd98078b93ebfdbae71f3c49395af0fd4357cf59c211a67566f1c8cfa" }, "downloads": -1, "filename": "edo_client-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4be1e992efa948f2300e40f7e8ccae50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8862, "upload_time": "2014-03-05T07:48:27", "url": "https://files.pythonhosted.org/packages/1b/15/0007dd1a71dea9396266a0af67566da097787acb2ffc05cb867290f83217/edo_client-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5f99a94f850dea4a525be62153180881", "sha256": "f88ec38cd5474187d688e181bc3b54ea653d070fa20357fa606803c1118100c1" }, "downloads": -1, "filename": "edo_client-0.0.3.tar.gz", "has_sig": false, "md5_digest": "5f99a94f850dea4a525be62153180881", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12326, "upload_time": "2015-01-07T15:11:42", "url": "https://files.pythonhosted.org/packages/57/b1/6524b9119d523be8cb2b6f7df692798c4c789dee335779f7e373b872dc46/edo_client-0.0.3.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "2f08b87cd5aa8b27be7e0b9c895cd1e6", "sha256": "e06b9269c7c4ff5efd015157977cb2eecdcc10f9ad5585359108645e60b28061" }, "downloads": -1, "filename": "edo_client-0.9.tar.gz", "has_sig": false, "md5_digest": "2f08b87cd5aa8b27be7e0b9c895cd1e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14454, "upload_time": "2015-01-09T02:38:34", "url": "https://files.pythonhosted.org/packages/53/a7/c5d1d5b63419d5e7c74ab53c8f8796852fbd678e5db2357bca7cd0b22ee9/edo_client-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "32f3f5c08f886987cc03ab568570f324", "sha256": "f7e5b4e80512aa3a47cc4272e630c4687954faa105b3a881e2d123bd4e456cc8" }, "downloads": -1, "filename": "edo_client-0.9.1.tar.gz", "has_sig": false, "md5_digest": "32f3f5c08f886987cc03ab568570f324", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14449, "upload_time": "2015-01-09T10:33:55", "url": "https://files.pythonhosted.org/packages/87/33/53b07cd41bb30ad28281b4a3ed50ce2166494bce4ce96851f2c67c0b3580/edo_client-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "7df3b64b8f6449af7e3ad2d5182a5762", "sha256": "3045f75da04103874b0bc32bb33bf118bd07fc34416bc955f8d1299033b82ae3" }, "downloads": -1, "filename": "edo_client-0.9.2.tar.gz", "has_sig": false, "md5_digest": "7df3b64b8f6449af7e3ad2d5182a5762", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14928, "upload_time": "2015-02-27T02:21:12", "url": "https://files.pythonhosted.org/packages/d2/bf/0b1cf7f0e2b673f5b15ada8dc00173b0aa3fd84d2d3bffb4b64c94efd204/edo_client-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "0e36d7099078d776a4a04a3329b05a7b", "sha256": "c2828bf54919396695d150887fc1e350f9930f49ee3441402ff2bbd5fd95ad78" }, "downloads": -1, "filename": "edo_client-0.9.3.tar.gz", "has_sig": false, "md5_digest": "0e36d7099078d776a4a04a3329b05a7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17211, "upload_time": "2015-05-25T06:39:56", "url": "https://files.pythonhosted.org/packages/05/82/a5139183a971c0f892df3a0a652c9e998239102204bb27b8c6a3ec1297be/edo_client-0.9.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e36d7099078d776a4a04a3329b05a7b", "sha256": "c2828bf54919396695d150887fc1e350f9930f49ee3441402ff2bbd5fd95ad78" }, "downloads": -1, "filename": "edo_client-0.9.3.tar.gz", "has_sig": false, "md5_digest": "0e36d7099078d776a4a04a3329b05a7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17211, "upload_time": "2015-05-25T06:39:56", "url": "https://files.pythonhosted.org/packages/05/82/a5139183a971c0f892df3a0a652c9e998239102204bb27b8c6a3ec1297be/edo_client-0.9.3.tar.gz" } ] }