{"id":13764655,"url":"https://github.com/mpociot/botman-spark-demo","last_synced_at":"2025-04-11T02:25:24.355Z","repository":{"id":143019339,"uuid":"95463104","full_name":"mpociot/botman-spark-demo","owner":"mpociot","description":"BotMan + Cisco Spark demo project","archived":false,"fork":false,"pushed_at":"2017-09-27T08:13:45.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T21:12:03.879Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpociot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-06-26T15:47:02.000Z","updated_at":"2018-05-16T19:14:15.000Z","dependencies_parsed_at":"2023-06-04T05:30:48.158Z","dependency_job_id":null,"html_url":"https://github.com/mpociot/botman-spark-demo","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/mpociot%2Fbotman-spark-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpociot%2Fbotman-spark-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpociot%2Fbotman-spark-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpociot%2Fbotman-spark-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpociot","download_url":"https://codeload.github.com/mpociot/botman-spark-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328660,"owners_count":21085364,"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-08-03T16:00:24.806Z","updated_at":"2025-04-11T02:25:24.337Z","avatar_url":"https://github.com/mpociot.png","language":"PHP","funding_links":[],"categories":["Code samples"],"sub_categories":["Bot samples"],"readme":"# BotMan + Cisco Spark Demo\n\nThis project shows how to use BotMan in combination with Cisco Spark.\n\n## Installation\n\n- Clone this repository.\n- `composer install`\n- Copy the `.env.example` file to `.env`.\n- Create a Cisco Spark Bot and past the access token into your `.env` file.\n- Use Laravel Valet or ngrok to create a local tunnel to the folder containing the `index.php` file.\n- Create a Cisco Spark Webhook with the created URL:\n\nJust replace `--YOUR-AUTHORIZATION-TOKEN--` with your token and `--YOUR-URL--` with your bot URL.\n\n```bash\ncurl -X POST -H \"Accept: application/json\" -H \"Authorization: Bearer --YOUR-AUTHORIZATION-TOKEN--\" -H \"Content-Type: application/json\" -d '{\n\t\"name\": \"BotMan Webhook\",\n\t\"targetUrl\": \"--YOUR-URL--\",\n\t\"resource\": \"all\",\n\t\"event\": \"all\"\n}' \"https://api.ciscospark.com/v1/webhooks\"\n```\n\nNow you can write your bot. \n\nTo start a conversation, write `pizza`.\n\nSee `index.php` and `PizzaConversation.php` for available commands and how conversations work.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpociot%2Fbotman-spark-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpociot%2Fbotman-spark-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpociot%2Fbotman-spark-demo/lists"}