{ "info": { "author": "Anton Kotseruba", "author_email": "ghost8recon@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\ufeffPython Skype Bot API for developing bots. \nMore instructions you can find on GitHub: https://github.com/denissa4/skype_chatbot \n===================================================================================== \nFor start using import skype_chatbot package: \nimport skype_chatbot \n===================================================================================== \nWrite you app ID and secret key: \napp_id = \"example_app_id\" \napp_secret = \"example_app_secret\" \n===================================================================================== \nCreate object in source file: \nbot = skype_chatbot.SkypeBot(app_id, app_secret)\n===================================================================================== \nNow you can use base methods: \nsend_message \nsend_media \ncreate_animation_card \ncreate_card_attachment \ncreate_card_image \ncreate_buttons \nsend_card \ncreate_card_adaptive \ncreate_item_for_adaptive_card \ncreate_action_for_adaptive_card \n===================================================================================== \nSend message: \nsend_message(bot_id, bot_name, recipient, service, sender, text, text_format)\n\nbot_id - skype bot id, you can get it from request data['recipient']['id']. \n bot_name - skype bot name, you can get it from request data['recipient']['name']. \n recipient - user, to whom you are sending the message. You can get it from request data['from']. \n service - service url, you can get it from request data['serviceUrl']. \n sender - conversation id, you can get it from request data['conversation']['id']. \n text - text what you want to send recipient. Must be a string. \n text_format - supported values: \"plain\", \"markdown\", or \"xml\" (default: \"markdown\"). \n===================================================================================== \nSend media files: \nsend_media(bot_id, bot_name, recipient, service, sender, message_type, url, attachment_name)\n\nbot_id - skype bot id, you can get it from request data['recipient']['id']. \nbot_name - skype bot name, you can get it from request data['recipient']['name']. \nrecipient - user, to whom you are sending the message. You can get it from request data['from']. \nservice - service url, you can get it from request data['serviceUrl']. \nsender - conversation id, you can get it from request data['conversation']['id']. \nmessage_type - type of your media file, e.g. \"image/png\". \nurl - open url for your media file. \nattachment_name - name, which is displayed to recipient. \n===================================================================================== \nCreate card that can play animated GIFs or short videos: \ncreate_animation_card(card_type, url, images, title, subtitle, text, buttons, autoloop, autostart, shareable)\n\ncard_type - type of card attachment (\"hero\", \"thumbnail\", \"receipt\"). \n url - open url for your animation file. \n images - list of images, in card attachment (to create image use method create_card_image). Must be a list. \n title - title for your card. Must be a string. \n subtitle - subtitle for your card. Must be a string. \n text - text for your card. Must be a string. \n buttons - list of buttons, in card attachment (to create button use method create_buttons). Must be a list. \n autoloop - default: True. \n autostart - default: True. \n shareable - default: True. \n===================================================================================== \nCreate card attachment(\"hero\", \"thumbnail\", \"receipt\"): \ncreate_card_attachment(card_type, title, subtitle, text, images, buttons)\n\ncard_type - type of card attachment (\"hero\", \"thumbnail\", \"receipt\"). \n title - title for your card. Must be a string. \n subtitle - subtitle for your card. Must be a string. \n text - text for your card. Must be a string. \n images - list of images, in card attachment (to create image use method create_card_image). Must be a list. \n buttons - list of buttons, in card attachment (to create button use method create_buttons). Must be a list. \n===================================================================================== \nCreate image for card: \ncreate_card_image(url, alt)\n\n url - open url for your image. \n alt - alternative text for image. \n===================================================================================== \nCreate button(actions) for card: \ncreate_button(button_type, title, value)\n\nbutton_type - type of your button(e.g. \"openUrl\", \"postBack\"). \n title - name of button. \n value - value of button(e.g. if button_type=\"openUrl\", value=\"example.com\"). \n===================================================================================== \nSend card attachment to recipient: \nsend_card(bot_id, bot_name, recipient, reply_to_id, service, sender, message_type, card_attachment, text)\n\nbot_id - skype bot id, you can get it from request data['recipient']['id']. \n bot_name - skype bot name, you can get it from request data['recipient']['name']. \n reply_to_id - the message id you are replying to, you can get it from request data['id']. \n recipient - user, to whom you are sending the message. You can get it from request data['from']. \n service - service url, you can get it from request data['serviceUrl']. \n sender - conversation id, you can get it from request data['conversation']['id']. \n message_type - if you send more than one card, choose display way(\"carousel\" or \"list\"). \n card_attachment - list of cards, in message (to create cards use method create_card_attachment). Must be a list. \n text - text of your message. \n===================================================================================== \n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "skype chat-bot chatbot bot api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "skype-chatbot", "package_url": "https://pypi.org/project/skype-chatbot/", "platform": "", "project_url": "https://pypi.org/project/skype-chatbot/", "project_urls": null, "release_url": "https://pypi.org/project/skype-chatbot/1.0.4/", "requires_dist": [ "requests (>=2.18.4)" ], "requires_python": "", "summary": "API for development the Skype chat-bot", "version": "1.0.4" }, "last_serial": 4131591, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "78f425f2a5880359742c3cc8949b5a69", "sha256": "7a7abede09a95840fb6da6557ad07f690e5db5719b44f9d6ba1880d7ec4cbb53" }, "downloads": -1, "filename": "skype_chatbot-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "78f425f2a5880359742c3cc8949b5a69", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6790, "upload_time": "2018-08-02T15:06:19", "url": "https://files.pythonhosted.org/packages/2a/ed/28c86fc973183e72a8f3f68191cd7894c03ea933f8b2a7b833332acfcbc4/skype_chatbot-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37621ded5b57b1e10b81e79b8819c4a4", "sha256": "76947ac2a40b081f6d16265d2366360d7bd7badadf86f1c1ed10051a87731cbc" }, "downloads": -1, "filename": "skype_chatbot-1.0.3.tar.gz", "has_sig": false, "md5_digest": "37621ded5b57b1e10b81e79b8819c4a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4220, "upload_time": "2018-08-02T15:06:21", "url": "https://files.pythonhosted.org/packages/41/5f/2d0e4b4258a6192cfeec0e2ff73b61babc100d12a9d17c06e189ada77985/skype_chatbot-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "9f412b8ef9e71255af6b1c14755bcc6e", "sha256": "2c1d3047253cf1b22d6b49e7da2e90b8992f273a6bd8e0a041d9d87160c8ddc1" }, "downloads": -1, "filename": "skype_chatbot-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "9f412b8ef9e71255af6b1c14755bcc6e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6784, "upload_time": "2018-08-03T08:18:08", "url": "https://files.pythonhosted.org/packages/99/cf/3ccae779c7732af0176ce894b2469734cf7959068ec9c422dfeebcd8c824/skype_chatbot-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cca70a7b9c9b5d2f20a29f568b063dd3", "sha256": "0bdbd5c429b7a9cf280522da70881689c490348103d67affe2eab261e4685b10" }, "downloads": -1, "filename": "skype_chatbot-1.0.4.tar.gz", "has_sig": false, "md5_digest": "cca70a7b9c9b5d2f20a29f568b063dd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4211, "upload_time": "2018-08-03T08:18:09", "url": "https://files.pythonhosted.org/packages/25/70/0f1840d7e7b49c1fdf40dde3c45e0e3b2dcf9b9b69ec485fd9523607f08b/skype_chatbot-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f412b8ef9e71255af6b1c14755bcc6e", "sha256": "2c1d3047253cf1b22d6b49e7da2e90b8992f273a6bd8e0a041d9d87160c8ddc1" }, "downloads": -1, "filename": "skype_chatbot-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "9f412b8ef9e71255af6b1c14755bcc6e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6784, "upload_time": "2018-08-03T08:18:08", "url": "https://files.pythonhosted.org/packages/99/cf/3ccae779c7732af0176ce894b2469734cf7959068ec9c422dfeebcd8c824/skype_chatbot-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cca70a7b9c9b5d2f20a29f568b063dd3", "sha256": "0bdbd5c429b7a9cf280522da70881689c490348103d67affe2eab261e4685b10" }, "downloads": -1, "filename": "skype_chatbot-1.0.4.tar.gz", "has_sig": false, "md5_digest": "cca70a7b9c9b5d2f20a29f568b063dd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4211, "upload_time": "2018-08-03T08:18:09", "url": "https://files.pythonhosted.org/packages/25/70/0f1840d7e7b49c1fdf40dde3c45e0e3b2dcf9b9b69ec485fd9523607f08b/skype_chatbot-1.0.4.tar.gz" } ] }