{ "info": { "author": "FumiyaOgawa", "author_email": "engineer.fumi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development" ], "description": "# liffpy\nIt is a package that allows you to manipulate LIFF(Line Frontend Framework) by Python.\n\n# Caution\n\n\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\nThis branch is for `Alpha Version`. \nThis package has little or no testing\n\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\u25a0\u25a1\n\n# How to use\n\n## Example\n\n```python\n# -*- coding:utf-8 -*-\nfrom liffpy import (\n LineFrontendFramework as LIFF,\n ErrorResponse\n)\n\n\ndef main():\n liff_api = LIFF(\"YOUR_CHANNEL_ACCESS_TOKEN\")\n\n try:\n # If you want to add LIFF app\n liff_id = liff_api.add(\n view_type=\"compact\",\n view_url=\"https://{YOUR LIFF-SITE}\")\n # 400 Error or 401 Error\n try:\n # If you want to update LIFF app\n liff_api.update(liff_id, \n view_type=\"full\",\n view_url=\"https://{YOUR LIFF-SITE}\")\n except ErrorResponse as err:\n # 401 Error or 404 Error\n print(err.message)\n return \n except ErrorResponse as err:\n # 401 Error or 404 Error\n print(err.message)\n return \n\n try:\n # If you want to get all LIFF apps\n apps_info = liff_api.get()\n for app_info in apps_info:\n try:\n # If you want to delete LIFF app\n liff_api.delete(app_info[\"liffId\"])\n except ErrorResponse as err:\n # 401 Error or 404 Error\n print(err.message)\n return \n except ErrorResponse as err:\n # 401 Error or 404 Error\n print(err.message)\n return \n\nif __name__ == '__main__':\n main()\n\n```\n\n## API\n\n### LineFrontendFramework\n\n#### `__init__(self, channel_access_token)`\n\nCreate a new LineFrontendFramework instance.\n\n```python\nliff_api = add(\n view_type=\"compact\",\n view_url=\"https://{YOUR LIFF-SITE}\")\n```\n\n\n#### `add(self, view_type, view_url)`\n\nAdds an app to LIFF. You can add up to 30 LIFF apps on one channel.\n\n```python\nliff_id = LineFrontendFramework('YOUR_CHANNEL_ACCESS_TOKEN')\n```\n\n##### view_type\n\n|name|mean|\n|:---:|:---:|\n|`\"compact\"`|50% of the screen height of the device|\n|`\"tall\"`|80% of the screen height of the device.\n|`\"full\"`|100% of the screen height of the device.|\n\n\"Add LIFF app\" in [https://developers.line.me/ja/reference/liff/](https://developers.line.me/ja/reference/liff/)\n\n\n#### `update(self, liff_id, view_type, view_url)`\n\nUpdates LIFF app settings. \n\n```python\nliff_api.update(liff_id,\n view_type=\"full\",\n view_url=\"https://{YOUR LIFF-SITE}\")\n```\n\n##### view_type\n\n|name|mean|\n|:---:|:---:|\n|`\"compact\"`|50% of the screen height of the device|\n|`\"tall\"`|80% of the screen height of the device.\n|`\"full\"`|100% of the screen height of the device.|\n\n\"Update LIFF app\" in [https://developers.line.me/ja/reference/liff/](https://developers.line.me/ja/reference/liff/)\n\n#### `get(self)`\n\nGets information on all the LIFF apps registered in the channel.\n\n```python\nliff_api.get()\n```\n\n\"Get all LIFF apps\" in [https://developers.line.me/ja/reference/liff/](https://developers.line.me/ja/reference/liff/)\n\n#### `delete(self, liff_id)`\n\nDeletes a LIFF app.\n\n```python\nliff_api.delete(liff_id)\n```\n\n\"Delete LIFF app\" in [https://developers.line.me/ja/reference/liff/](https://developers.line.me/ja/reference/liff/)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fantm21/liffpy", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "liffpy", "package_url": "https://pypi.org/project/liffpy/", "platform": "", "project_url": "https://pypi.org/project/liffpy/", "project_urls": { "Homepage": "https://github.com/fantm21/liffpy" }, "release_url": "https://pypi.org/project/liffpy/0.0.1a3/", "requires_dist": [ "requests (>=2.0)" ], "requires_python": "", "summary": "It is a package that allows you to manipulate LIFF(Line Frontend Framework) by Python.", "version": "0.0.1a3" }, "last_serial": 4308233, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "d1990c0a85290fa7671f633f073147ca", "sha256": "3d0c5f6c3147c4c2fe210c376d36614fb62cd6552240b42ab1edbfe858267bb0" }, "downloads": -1, "filename": "liffpy-0.0.1a0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1990c0a85290fa7671f633f073147ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4964, "upload_time": "2018-09-13T13:47:03", "url": "https://files.pythonhosted.org/packages/9f/2a/a7ab54ed5db9afd988b449e271c98208577a46aeba52d5534bfc14032721/liffpy-0.0.1a0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2bea0c4b6955dbe26c303c1b67402aeb", "sha256": "b5f5b1d42171049ed63ca2663daabbb0537f0082b356ed055ec998bc103f197a" }, "downloads": -1, "filename": "liffpy-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "2bea0c4b6955dbe26c303c1b67402aeb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3930, "upload_time": "2018-09-13T13:47:04", "url": "https://files.pythonhosted.org/packages/20/00/086eedf9e976bc1abc43f2b73d973abd1a7bce2e8e278be17c663b117187/liffpy-0.0.1a0.tar.gz" } ], "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "f51e381c54638bdac9dd175aa8233e31", "sha256": "857012589da126d3de62c91f05dae9aba668286f4042df38313febf948474f0c" }, "downloads": -1, "filename": "liffpy-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "f51e381c54638bdac9dd175aa8233e31", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4961, "upload_time": "2018-09-22T09:58:00", "url": "https://files.pythonhosted.org/packages/25/6a/0c933001adc14759204b759f9ada734e48822ef217fb65fa61d000091042/liffpy-0.0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "67c3a865c716914968a326d9ed39db9f", "sha256": "bcb6a8008e475fd8292fa0054dc7386c4a92319df13e13bc16770055e2487942" }, "downloads": -1, "filename": "liffpy-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "67c3a865c716914968a326d9ed39db9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3937, "upload_time": "2018-09-22T09:58:01", "url": "https://files.pythonhosted.org/packages/c3/a2/6b5dbd58e15587b91fbeb754ea09eec2e970667bf3677f56a70135c8ee61/liffpy-0.0.1a1.tar.gz" } ], "0.0.1a2": [ { "comment_text": "", "digests": { "md5": "f5180499beb502f41cae85830584c0cd", "sha256": "ab0f64d165ff1a664d2e9e29887deda07262c76ade930edbc58152341b1395e3" }, "downloads": -1, "filename": "liffpy-0.0.1a2-py3-none-any.whl", "has_sig": false, "md5_digest": "f5180499beb502f41cae85830584c0cd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4958, "upload_time": "2018-09-22T10:16:16", "url": "https://files.pythonhosted.org/packages/bf/8b/b7bd569b55a34414e083f6cca08fa9a585b108dadd35490273188556bc7d/liffpy-0.0.1a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80327bdb6eec1b17bb37686e264f35b4", "sha256": "c0164f33e9a8a48aeed0812de5726bdb2b35d06672ee2590ada74425cb0f480d" }, "downloads": -1, "filename": "liffpy-0.0.1a2.tar.gz", "has_sig": false, "md5_digest": "80327bdb6eec1b17bb37686e264f35b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3941, "upload_time": "2018-09-22T10:16:17", "url": "https://files.pythonhosted.org/packages/c2/43/3c6cbff44c61bed1ce3bd5eb0a71a60d71a10affa62ce962312a6296fe0d/liffpy-0.0.1a2.tar.gz" } ], "0.0.1a3": [ { "comment_text": "", "digests": { "md5": "2cf48a3fe210c8289f10d1ef27080282", "sha256": "ba2053eb9a3a6cea615f074abf925b1f9993755640fc406f2142c3abbcbc0db0" }, "downloads": -1, "filename": "liffpy-0.0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "2cf48a3fe210c8289f10d1ef27080282", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4963, "upload_time": "2018-09-25T11:36:22", "url": "https://files.pythonhosted.org/packages/2f/af/aea4948f0c32edcd72561dd0cc9266299c134d783c819b7f5b172bc53b8d/liffpy-0.0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cc91b8855a209a1aa313482217f8fd7", "sha256": "204ad8be39d297c8937fd7fe0bdad2feeee03cbb0528fa4136b78d1fab6bc6dc" }, "downloads": -1, "filename": "liffpy-0.0.1a3.tar.gz", "has_sig": false, "md5_digest": "0cc91b8855a209a1aa313482217f8fd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3952, "upload_time": "2018-09-25T11:36:24", "url": "https://files.pythonhosted.org/packages/4e/0b/84addeb87bf241d368d9c7c646e75e80de5ea0eaab56dffc954ce73431c1/liffpy-0.0.1a3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cf48a3fe210c8289f10d1ef27080282", "sha256": "ba2053eb9a3a6cea615f074abf925b1f9993755640fc406f2142c3abbcbc0db0" }, "downloads": -1, "filename": "liffpy-0.0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "2cf48a3fe210c8289f10d1ef27080282", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4963, "upload_time": "2018-09-25T11:36:22", "url": "https://files.pythonhosted.org/packages/2f/af/aea4948f0c32edcd72561dd0cc9266299c134d783c819b7f5b172bc53b8d/liffpy-0.0.1a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cc91b8855a209a1aa313482217f8fd7", "sha256": "204ad8be39d297c8937fd7fe0bdad2feeee03cbb0528fa4136b78d1fab6bc6dc" }, "downloads": -1, "filename": "liffpy-0.0.1a3.tar.gz", "has_sig": false, "md5_digest": "0cc91b8855a209a1aa313482217f8fd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3952, "upload_time": "2018-09-25T11:36:24", "url": "https://files.pythonhosted.org/packages/4e/0b/84addeb87bf241d368d9c7c646e75e80de5ea0eaab56dffc954ce73431c1/liffpy-0.0.1a3.tar.gz" } ] }