{"id":18941406,"url":"https://github.com/mchmarny/twitter-search-dapr-component-example","last_synced_at":"2025-06-15T23:06:10.088Z","repository":{"id":77051963,"uuid":"259951175","full_name":"mchmarny/twitter-search-dapr-component-example","owner":"mchmarny","description":"Twitter search dapr input component example","archived":false,"fork":false,"pushed_at":"2023-05-05T02:24:15.000Z","size":7331,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T22:42:48.746Z","etag":null,"topics":["dapr","dapr-component","example"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchmarny.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":"2020-04-29T14:37:21.000Z","updated_at":"2020-05-04T21:07:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab4311cc-32a2-4d7c-958e-913a4d37a7b0","html_url":"https://github.com/mchmarny/twitter-search-dapr-component-example","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/mchmarny%2Ftwitter-search-dapr-component-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftwitter-search-dapr-component-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftwitter-search-dapr-component-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftwitter-search-dapr-component-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/twitter-search-dapr-component-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239940401,"owners_count":19722014,"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":["dapr","dapr-component","example"],"created_at":"2024-11-08T12:27:56.488Z","updated_at":"2025-02-21T01:34:03.011Z","avatar_url":"https://github.com/mchmarny.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitter-search-dapr-component-example\n\nExample of how to use Twitter search input component in [godapr](https://github.com/mchmarny/godapr).\n\n\n## Prerequisites\n\n### dapr\n\nTo run this demo locally, you will have to have install [dapr](https://github.com). The instructions for how to do that can be found [here](https://github.com/dapr/docs/blob/master/getting-started/environment-setup.md).\n\n### Twitter\n\nTo configure the dapr input component to query Twitter API you will also need the consumer key and secret. You can get these by registering a Twitter application [here](https://developer.twitter.com/en/apps/create).\n\n## Setup\n\nAssuming you have all the prerequisites mentioned above you can demo this dapr pipeline in following steps. First, start by cloning this repo:\n\n```shell\ngit clone https://github.com/mchmarny/twitter-search-dapr-component-example.git\n```\n\nand then navigate into the `twitter-search-dapr-component-example` directory:\n\n```shell\ncd twitter-search-dapr-component-example\n```\n\n### Component \n\nInsert your Twitter API secrets into the [components/twitter.yaml](components/twitter.yaml) file.\n\n```yaml\napiVersion: dapr.io/v1alpha1\nkind: Component\nmetadata:\n  name: tweets\nspec:\n  type: bindings.twitter\n  metadata:\n  - name: consumerKey\n    value: \"\"\n  - name: consumerSecret\n    value: \"\"\n  - name: accessToken\n    value: \"\"\n  - name: accessSecret\n    value: \"\"\n  - name: query\n    value: \"serverless\"\n```\n\nThe `query` is the twitter search query for which you want to receive tweets.\n\n\n### Run\n\nOnce the Twitter API consumer and access details are set, you are ready to run:\n\n\n```shell\ndapr run go run handler.go main.go \\\n         --app-id \"consumer\" \\\n         --app-port 8081 \\\n         --protocol http \\\n         --port 3500\n```\n\nAssuming everything went OK, you should see something like this:\n\n```shell\nℹ️  Updating metadata for app command: handler.go main.go\n✅  You're up and running! Both Dapr and your app logs will appear here.\n```\n\nHope you found this demo helpful. \n\n## Disclaimer\n\nThis is my personal project and it does not represent my employer. I take no responsibility for issues caused by this code. I do my best to ensure that everything works, but if something goes wrong, my apologies is all you will get.\n\n## License\nThis software is released under the [Apache v2 License](./LICENSE)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Ftwitter-search-dapr-component-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Ftwitter-search-dapr-component-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Ftwitter-search-dapr-component-example/lists"}