Releases for sf 1.1
| Version |
License |
API |
Released |
|
0.3.0stable
|
MIT License |
0.3.0stable
|
07/08/2008 |
| Name |
Channel |
Version |
| sfWebBrowserPlugin |
pear.symfony-project.com |
1.0.1- |
Copyright (c) 2008 Francesco Fullone <ff@ideato.it>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Changelog for release 0.3.0 - 07/08/2008
Not available
Other releases
Release 0.3.0 - 07/08/2008
Not available
idTwitterClient plugin
The idTwitterClientPlugin offers an object interface for Twitter.com API.
Possible uses
- serving a xml/json/RSS/Atom feed based on twitter response
- updating twitter status
- create a twitter bot
Contents
This plugin contains a unique class called idTwitterClient
Unit tests will be available in the SVN repository.
Installation
Patch the sfCurlAdapter of sfWebBrowser 1.0.1 with this patch http://trac.symfony-project.org/attachment/ticket/4095/sfCurlAdapter.patch
Install the plugin
$ symfony plugin-install http://plugins.symfony-project.com/idTwitterClientPlugin
Alternatively, if you don't have PEAR installed, you can download the latest package attached to this plugin's wiki page and extract it under your project's plugins/ directory
Clear the cache to enable the autoloading to find the new class
$ symfony cc
Tutorials
Update the user status
$t = new idTwitterClient('username','password');
$t->StatusUpdate('I\'m updating my status...');
Retrieve user timeline as json
$t = new idTwitterClient('username','password');
$json = $t->UserTimeline('json');
Retrieve user timeline as rss since yesterday
$t = new idTwitterClient('username','password');
$feed = $t->UserTimeline('rss', date('r', strtotime('yesterday')); // if sfFeed2Plugin is enabled the method will return a sfFeed objects array
Retrieve public timeline as xml
$t = new idTwitterClient(); // for public timeline auth is not required
$feed = $t->PublicTimeline('xml'); // will return a SimpleXMLElement object
Search "symfony" twitts from a specified user
$t = new idTwitterClient(); // for search auth is not required
$json = $t->Search('symfony from:fullo');
TODO
- unit test
- refactoring of different classes
Changelog
2008-08-07 | 0.3.0 Stable
- fullo: fixed support to latest sfCurlAdapter patch
2008-07-30 | 0.2.0 Alpha
- fullo: added Search method
2008-07-29 | 0.1.0 Alpha