{"id":17286663,"url":"https://github.com/louis70109/line-icon-switch-python","last_synced_at":"2025-07-30T21:32:11.385Z","repository":{"id":40768306,"uuid":"250606002","full_name":"louis70109/line-icon-switch-python","owner":"louis70109","description":"LINE Icon Switch sample code","archived":false,"fork":false,"pushed_at":"2023-05-01T20:38:15.000Z","size":101,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T09:59:50.635Z","etag":null,"topics":["aws","flask","icon-switch","line","python","serverless"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louis70109.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-27T17:54:50.000Z","updated_at":"2022-06-24T08:24:45.000Z","dependencies_parsed_at":"2022-09-06T01:50:57.672Z","dependency_job_id":null,"html_url":"https://github.com/louis70109/line-icon-switch-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Fline-icon-switch-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Fline-icon-switch-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Fline-icon-switch-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Fline-icon-switch-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louis70109","download_url":"https://codeload.github.com/louis70109/line-icon-switch-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228189647,"owners_count":17882666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","flask","icon-switch","line","python","serverless"],"created_at":"2024-10-15T09:59:51.847Z","updated_at":"2024-12-04T20:42:25.364Z","avatar_url":"https://github.com/louis70109.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LINE Icon Switch API sample\n\nLINE new API - [Icon Switch](https://developers.line.biz/zh-hant/reference/messaging-api/#icon-nickname-switch): this API can change icon and display name in same **LINE BOT**\n\n# Trigger text\nThis bot will catch trigger text to change name and avatar !!🎉\n- Sally\n- Brown\n- Cony\n\n![](https://i.imgur.com/TbtdNFjl.png)\n\n# Developer Side\n\n## LINE account\n\n- Got A LINE Bot API devloper account\nMake sure you already registered, if you need use LINE Bot.\n\n\n- Go to LINE Developer Console\n    - Close auto-reply setting on \"Messaging API\" Tab.\n    - Setup your basic account information. Here is some info you will need to know.\n        - Callback URL: `https://{NGROK_URL}/webhooks/line`\n        - Verify your webhook.\n- You will get following info, need fill back to `.env` file.\n    - Channel Secret\n    - Channel Access Token (You need to issue one here)\n\n## Normal testing\n\n1. first terminal window\n```\ncp .env.sample .env\npip install -r requirements.txt --user\npython api.py\n```\n\n\u003e [2020/03/28] LINE just not already release tag in SDK, so I use git method to install NEW feature package(icon switch).\n2. Create a provisional Https:\n\n```\nngrok http 5000\n```\n\nor maybe you have npm enviroment:\n\n```\nnpx ngrok http 5000\n```\n![](https://i.imgur.com/azVdG8j.png)\n\n3. Copy url to LINE Developer Console\n\n## If you have AWS account\n1. Install serverless via npm:\n\n```bash=\n$ npm install -g serverless\n```\n\n2. Setup your **AWS** ceritficate\n\n```bash=\nexport AWS_ACCESS_KEY_ID=\u003cyour-key-here\u003e\nexport AWS_SECRET_ACCESS_KEY=\u003cyour-secret-key-here\u003e\n```\n\n3. Deploy the example:\n\n```bash=\nnpm install\npip install -r requirements.txt --user\nserverless wsgi serve # local testing\nserverless deploy     # deploy to AWS\n```\n\n4. If deploy, copy the url to LINE Developer Console\n# License\n\nMIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Fline-icon-switch-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis70109%2Fline-icon-switch-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Fline-icon-switch-python/lists"}