{ "info": { "author": "Ery Lee", "author_email": "ery.lee@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Webim-python\n============\n\nWebIM python client for nextalk.im\n\n\nUsage\n=====\n\n ```python\n\n\timport webim \n\n\tendpoint = {'id': 'uid1', 'nick': 'user1', 'presence': 'online', 'show': 'available'}\n\n\tc = webim.Client(endpoint, 'domain', 'apikey', host='nextalk.im', port = 8000)\n\n\tc.online(['uid1','uid2','uid3'], ['room1','room2','room3'])\n\n\tc.offline()\n\n\n ```\n\nAPI\n===\n\nOnline\n------\n \n ```python\n\n buddies = ['uid1', 'uid2', 'uid3']\n \n rooms = ['room1', 'room2', 'room3']\n\n c.online(buddies, rooms)\n\n ```\n\nOffline\n-------\n\n ```python\n\n c.offline()\n\n ```\n\n\nPresence\n---------------\n\n ```python\n\n show = 'away'\n\n status = 'Away'\n\n status, resp = self.client.show(show, status)\n\n ```\n\nSend Message\n-------------\n\n ```python\n\n message = {\n 'to': 'uid2',\n 'nick': 'user1',\n 'body': 'hahaha',\n 'timestamp': time.time()*1000,\n 'type': 'chat',\n 'style': '' \n }\n status, resp = self.client.message(message)\n\n ```\n\nPush Message\n-------------\n\n ```python\n\n c = Client(self.endpoint, \"localhost\", \"public\")\n\n message = {\n 'from': 'uid3',\n 'to': 'uid2',\n 'nick': 'user3',\n 'body': 'hahaha',\n 'timestamp': time.time()*1000,\n 'type': 'chat',\n 'style': '' \n }\n\n status, resp = c.message(message) \n\n ```\n\nSend Status\n-----------\n\n ```python\n\n status = {\n 'to': 'uid2',\n 'show': 'typeing',\n 'status': 'user1 is typing' \n }\n status, resp = c.status(status)\n\n ```\n\nRetrieve Presences\n------------------\n\n ```python\n\n uids = ['uid1', 'uid2']\n\n status, json = c.presences(uids)\n\n ```\n\n\nRetrieve room members\n----------------------\n\n\n ```python\n\n room = 'room1'\n\n status, json = c.members(room)\n\n ```\n\nJoin Room\n----------\n\n ```python\n\n room = 'room1'\n\n c.join(room) \n\n ```\n\nLeave Room\n-----------\n\n ```python\n\n room = 'room1'\n\n c.leave(room)\n\n ```\n\nAuthor\n============\n\nhttp://nextalk.im\n\nhttp://github.com/webim\n\nContact\n============\n\nery.lee at gmail.com", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/webim/webim-python", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/webim/webim-python", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "webim", "package_url": "https://pypi.org/project/webim/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/webim/", "project_urls": { "Download": "http://github.com/webim/webim-python", "Homepage": "http://github.com/webim/webim-python" }, "release_url": "https://pypi.org/project/webim/5.8/", "requires_dist": null, "requires_python": null, "summary": "Python webim client for nextalk.im", "version": "5.8" }, "last_serial": 1513085, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "634ca96218066069011488934a5a924a", "sha256": "a37ee72b95c0a3703abc07db352ff8bf30d2062d99788906404c687c76957e1e" }, "downloads": -1, "filename": "webim-1.0.2.tar.gz", "has_sig": false, "md5_digest": "634ca96218066069011488934a5a924a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3798, "upload_time": "2014-01-13T05:25:21", "url": "https://files.pythonhosted.org/packages/f7/f0/97b19b07944e4354f2803a43a0b3fd6b35baf4c4ac36547895e3bb8477d4/webim-1.0.2.tar.gz" } ], "5.4.1": [ { "comment_text": "", "digests": { "md5": "4e8b19a5d47ed06324616de439842207", "sha256": "66d2553f6ffd88d1f7311502e26b2e035cef771e1feb91e6ec09e6c0d5dbfe64" }, "downloads": -1, "filename": "webim-5.4.1.tar.gz", "has_sig": false, "md5_digest": "4e8b19a5d47ed06324616de439842207", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4195, "upload_time": "2014-03-30T07:05:45", "url": "https://files.pythonhosted.org/packages/ba/a1/4d8088da6328972ec32c78dad98204be622f7cb4a652770aa08f2323a494/webim-5.4.1.tar.gz" } ], "5.8": [ { "comment_text": "", "digests": { "md5": "e5ea48e6037e4d4c3a726914d1535953", "sha256": "0596758fb3a0612a4c21d747657e8e0e796d4566495fcbcc3581c751fa867b2b" }, "downloads": -1, "filename": "webim-5.8.tar.gz", "has_sig": false, "md5_digest": "e5ea48e6037e4d4c3a726914d1535953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2015-04-20T15:12:07", "url": "https://files.pythonhosted.org/packages/08/5e/72eab9c2cf3a8cecd85f4bec3538450052eff3979c50a8c099dae20fac8e/webim-5.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e5ea48e6037e4d4c3a726914d1535953", "sha256": "0596758fb3a0612a4c21d747657e8e0e796d4566495fcbcc3581c751fa867b2b" }, "downloads": -1, "filename": "webim-5.8.tar.gz", "has_sig": false, "md5_digest": "e5ea48e6037e4d4c3a726914d1535953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4239, "upload_time": "2015-04-20T15:12:07", "url": "https://files.pythonhosted.org/packages/08/5e/72eab9c2cf3a8cecd85f4bec3538450052eff3979c50a8c099dae20fac8e/webim-5.8.tar.gz" } ] }