flux Twitter API
Categories
Component ID
1988182
Component name
flux Twitter API
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
1405
Component created
Component changed
Component body
Integrates with the twitter API based upon the flux Services integration.
This is an integration module, so it does not expose any end-user functionality. It integrates Drupal with the twitter API by providing remote entities and integration with the Rules module.
Similar projects
The twitter module integrates with twitter by pulling twitter data into the database during cron runs. The flux twitter API takes a different approach as it directly communicates with the twitter API (beside caching) and builds upon the flux Services integration framework.
Requirements
- flux Services integration (obviously)
Related projects
- Entity reference patched with #2139163: Support reference entities with non-integer identifiers can reference tweets, twitter users, ..
- With Entity Field Query Views-backend the module has basic Views integration, directly querying Twitter's API
- Entitycache may be used to cache remote entities, alongside with Cache Actions for custom, rule-based cache clearing mechanisms. (requires dev)
API
- The module connects to twitter via the Guzzle web service client and provides a clean API for developers to interact with twitter.
$account = entity_load_single('fluxservice_account', $id);
$tweets = $account->client()->GetUserTimeline(array('screen_name' => 'fluxkraft'));