https://github.com/dimaip/dimaip.twitterhelper
EEL helper to query Twitter API v1.1
https://github.com/dimaip/dimaip.twitterhelper
Last synced: 9 months ago
JSON representation
EEL helper to query Twitter API v1.1
- Host: GitHub
- URL: https://github.com/dimaip/dimaip.twitterhelper
- Owner: dimaip
- Created: 2016-08-23T21:36:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-13T08:16:57.000Z (about 4 years ago)
- Last Synced: 2024-05-18T19:45:28.326Z (about 2 years ago)
- Language: PHP
- Homepage: https://dev.twitter.com/rest/public
- Size: 204 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NeosCMS EEL Helper to access Twitter API
## TL;DR
1. Install the package: `composer require dimaip/twitterhelper:dev-master`
2. Go to https://apps.twitter.com/ and create a new app with read-only permissions.
3. Go to "Keys and Access Tokens" tab and copy the access tokens to your `Settings.yaml` file in the following way:
```
Dimaip:
TwitterHelper:
oauthAccessToken: XXX
oauthAccessTokenSecret: XXX
consumerKey: XXX
consumerSecret: XXX
```
That's all! Now you can use the ready-made `Dimaip.TwitterHelper:Timeline` TS object, e.g.:
```
root = Dimaip.TwitterHelper:Timeline {
user = 'neoscms'
count = 100
}
```
To adjust the looks, alter the `Dimaip.TwitterHelper:Tweet` TS object. It has `tweet` context variable with all of the fields described here: https://dev.twitter.com/overview/api/tweets
Or you can use the EEL helper directly to make any kind of GET request to the Twitter API, e.g.:
`${Twitter.getRequest('statuses/user_timeline', 'screen_name=neoscms&count=10')}`
The EEL helper takes two arguments: Twitter API GET endpoint name and GET arguments for that endpoint.
**The development of this plugin was kindly sponsored by [CODE Q](https://www.codeq.at/)**

**[Get in touch](dimaip.github.io/hire/) with me if you need to get something nice and Neos-y developed ;)**