{"id":16674453,"url":"https://github.com/settermjd/twilio-whatsapp-weatherapi-chatbot","last_synced_at":"2025-08-04T21:41:15.472Z","repository":{"id":141498717,"uuid":"380355642","full_name":"settermjd/twilio-whatsapp-weatherapi-chatbot","owner":"settermjd","description":"A small Mezzio application that forms the basis of a tutorial for the Twilio blog showing how to create a chatbot using Twilio's WhatsApp API, WeatherAPI, and Mezzio.","archived":false,"fork":false,"pushed_at":"2021-12-15T20:09:29.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T20:31:00.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settermjd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-25T21:16:53.000Z","updated_at":"2021-12-15T20:09:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce1f0985-7347-43e6-9db4-e30665826e0a","html_url":"https://github.com/settermjd/twilio-whatsapp-weatherapi-chatbot","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/settermjd%2Ftwilio-whatsapp-weatherapi-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Ftwilio-whatsapp-weatherapi-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Ftwilio-whatsapp-weatherapi-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Ftwilio-whatsapp-weatherapi-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/twilio-whatsapp-weatherapi-chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330319,"owners_count":20274039,"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":[],"created_at":"2024-10-12T12:43:16.455Z","updated_at":"2025-03-13T03:16:13.882Z","avatar_url":"https://github.com/settermjd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilio WhatsApp WeatherAPI Chatbot\n\nThis is a small Mezzio application which forms the basis of an upcoming tutorial for [the Twilio blog](https://twilio.com/blog) which will show how to create a chatbot using [Twilio's WhatsApp API](https://www.twilio.com/whatsapp), [WeatherAPI](https://www.weatherapi.com/), and [Mezzio](https://docs.mezzio.dev/mezzio/).\n\nIf you'd like to learn the essentials of building applications using Mezzio, the best framework for PHP, grab a copy of [Mezzio Essentials](https://mezzioessentials.com)!\n\n## Usage\n\nTo build and run the application, follow the steps below:\n\n- Clone the application\n- Install the required dependencies\n- Add your Weather API key as the value for `WEATHERAPI_API_KEY` to _.env_.\n  It was created after running `composer install`.\n- Run the application\n\nYou can do most of these by running the commands below.\n\n```bash\ngit clone https://github.com/settermjd/twilio-whatsapp-weatherapi-chatbot.git\ncd twilio-whatsapp-weatherapi-chatbot\ncomposer install\ncomposer serve\n```\n\nAt this point, the application will be listening on localhost on port 8080, so you're ready to make requests.\nTo do that, make a POST request with a body that follows the following format, replacing `\u003ccity\u003e` with your desired city name.\n\n```\nWhat is the weather like in \u003ccity\u003e today?\n```\n\nHere's an example of how to do so using cURL.\n\n```bash\ncurl -X POST --data \"Body=What is the weather like in Rockhampton today?\" http://localhost:8080\n```\n\nIf you prefer a GUI application, I highly recommend [Postman](https://www.postman.com/downloads/).\n\nYou should see a response similar to the following (formatted to aid readability).\n\n```xml\n\u003cResponse\u003e\n    \u003cMessage\u003e\n        In Rockhampton (Queensland, Australia), today, it's 13 degrees celsius, but feels like 12, with a humidity of 94 percent. \nThe wind is currently 6 kp/h from the SE.\n    \u003c/Message\u003e\n\u003c/Response\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Ftwilio-whatsapp-weatherapi-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Ftwilio-whatsapp-weatherapi-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Ftwilio-whatsapp-weatherapi-chatbot/lists"}