Public Member Functions | |
| __construct ($username, $password) | |
| Constructor. | |
| getPublicTimeLine () | |
| Get the 20 most recent posts in public timeline. | |
| getUserUpdates ($userid, $count) | |
| Get the updates of a given user. | |
| getDirectMsgs () | |
| Get the 20 most recent direct messages of authenticated user. | |
| getOwnTimeline ($count) | |
| Gets the timeline of the authenticated user. | |
| getReplies ($since=false) | |
| Get the 20 most recent replies for authenticated user. | |
| sendUpdate ($message) | |
| Posts a new status update to twitter. | |
| sendReply ($message, $userid) | |
| Posts a reply to a given userid. | |
| sendDirectMessage ($message, $userid) | |
| Send a direct message to a given user. | |
| addUser ($userid) | |
| Adds a user as a friend and starts following him. | |
| removeUser ($userid) | |
| Unfriends the given user, also stops following it. | |
| getFollowing ($userid=null) | |
| Get the friends (following) of authtenticated user or target user. | |
| getFollowers ($userid=null) | |
| Get the followers of authenticated user or given user. | |
v0.5 - Some code optimizations, methods now return XML string instead of a simpleXML object. Removed config.inc.php.
v0.2 - Added a check to see if cURL is loaded, and some http error code detection on the connect() method.
************************* LICENSE ************************************
This file is part of TwitterPHP.
TwitterPHP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
TwitterPHP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with TwitterPHP. If not, see <http://www.gnu.org/licenses/>.
1.5.8