https://github.com/designyourcode/twitter-feed
PHP scripts for doing Twitter related things.
https://github.com/designyourcode/twitter-feed
Last synced: about 1 year ago
JSON representation
PHP scripts for doing Twitter related things.
- Host: GitHub
- URL: https://github.com/designyourcode/twitter-feed
- Owner: DesignyourCode
- License: mit
- Created: 2016-05-24T09:08:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T21:35:09.000Z (over 8 years ago)
- Last Synced: 2025-02-02T14:47:18.999Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Feed
Some lightweight, simple scripts for retrieving Tweets and Tweet Count.
Feel free to create your own and contribute them. I use these 2 often so they are first to be added.
## Getting the examples working
All you need to do is run this is a PHP server and ensure you have added your consumer and secrets keys.
To get consumer and secret keys (here is an example on how to do it that I found, to save you the time of Googling it), you will need to create a Twitter App, in your Twitter developer account.
```
$settings = array(
'consumer_key' => "XXXXXxxxXXXXXxXXXXxxx",
'consumer_secret' => "xXxxxXxXXxXxXXxxXXxXXXXxXXxxXXXXXXxxxXxxXX",
'oauth_access_token' => "XXXXXXXXX-XXXxxxxXxXXxXXXXXXxxxXxxxXxXXXXXxXXxxxXXxX",
'oauth_access_token_secret' => "XXxXxXXxXxXXxXxxXXXxXxXxxxXXXXXXXXxXXXXXX"
);
```
You will also need to add your screen name.
```
$screen_name = 'your_screen_name_here';
```