{"id":18369971,"url":"https://github.com/statamic/twitter","last_synced_at":"2025-06-17T04:04:14.218Z","repository":{"id":57059177,"uuid":"175689954","full_name":"statamic/twitter","owner":"statamic","description":"Twitter example addon for Statamic 3.","archived":false,"fork":false,"pushed_at":"2019-03-14T20:25:25.000Z","size":1666,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T04:41:27.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/statamic.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}},"created_at":"2019-03-14T19:54:34.000Z","updated_at":"2024-05-02T17:34:51.000Z","dependencies_parsed_at":"2022-08-24T14:53:26.984Z","dependency_job_id":null,"html_url":"https://github.com/statamic/twitter","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/statamic%2Ftwitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Ftwitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Ftwitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Ftwitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531409,"owners_count":20953953,"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-11-05T23:34:48.295Z","updated_at":"2025-04-06T18:32:43.210Z","avatar_url":"https://github.com/statamic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter\n\n\u003e A fieldtype for Statamic v3\n\n![](capture.gif)\n\n## Installation\n\n```\ncomposer require statamic/twitter\nphp artisan vendor:publish --provider=\"Statamic\\Twitter\\ServiceProvider\"\n```\n\n### Adding API Keys\n\nThis addon uses the [Jonathan Thuau's Twitter package](https://github.com/thujohn/twitter) under the hood. You will need to [create a Twitter app](https://apps.twitter.com/) and hook your API keys.\n\nOnce you've made your app, add the following to your `.env` file and enter the values:\n\n``` \nTWITTER_CONSUMER_KEY=\nTWITTER_CONSUMER_SECRET=\nTWITTER_ACCESS_TOKEN=\nTWITTER_ACCESS_TOKEN_SECRET=\n```\n\n## Fieldtype\n\nUse the `twitter` fieldtype to select tweets from a given user.\n\n``` yaml\nfields:\n  -\n    handle: tweets\n    field:\n      type: twitter\n      max_items: 3\n      screen_name: jason_varga\n```\n\nThe fieldtype will save a list of tweet status IDs.\n\n``` yaml\ntweets:\n  - 12345\n  - 67890\n```\n\n## Templating\n\nThe saved tweet IDs will be automatically augmented to useful data. Just use an array syntax to loop over them.\n\n``` html\n{{ tweets }}\n    \u003cblockquote\u003e\n        \u003cp\u003e{{ text }}\u003c/p\u003e\n        \u003cp\u003e– {{ user }}\u003c/p\u003e\n    \u003c/blockquote\u003e\n{{ /tweets }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Ftwitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Ftwitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Ftwitter/lists"}