|
31 | 31 | * @method Response setText($padID, $text) sets the text of a pad
|
32 | 32 | * @method Response getHTML($padID, $rev = null) returns the text of a pad formatted as HTML
|
33 | 33 | * @method Response setHTML($padID, $html) sets the html of a pad
|
| 34 | + * @method Response getAttributePool($padID) returns the attribute pool of a pad |
| 35 | + * @method Response getRevisionChangeset($padID, $revision = null) get the changeset at a given revision, or last revision if 'rev' is not defined. |
| 36 | + * @method Response createDiffHTML($padID, $startRev, $endRev) returns an object of diffs from 2 points in a pad |
| 37 | + * @method Response restoreRevision($padID, $revision) restores revision from past as new changeset |
34 | 38 | *
|
35 | 39 | * @method Response getChatHistory($padID, $start = null, $end = null) a part of the chat history, when start and end are given, the whole chat histroy, when no extra parameters are given
|
36 | 40 | * @method Response getChatHead($padID) returns the chatHead (last number of the last chat-message) of the pad
|
| 41 | + * @method Response appendChatMessage($padID, $text, $authorID, $time = null) creates a chat message, saves it to the database and sends it to all connected clients of this pad |
37 | 42 | *
|
38 | 43 | * @method Response createPad($padID, $text = null) creates a new (non-group) pad. Note that if you need to create a group Pad, you should call createGroupPad.
|
39 | 44 | * @method Response getRevisionsCount($padID) returns the number of revisions of this pad
|
| 45 | + * @method Response getSavedRevisionsCount($padID) returns the number of saved revisions of this pad |
| 46 | + * @method Response listSavedRevisions($padID) returns a list of saved revisions of this pad |
| 47 | + * @method Response saveRevision($padID, $revision = null) save a revision of a pad |
40 | 48 | * @method Response padUsersCount($padID) returns the number of user that are currently editing this pad
|
41 | 49 | * @method Response padUsers($padID) returns the list of users that are currently editing this pad
|
42 | 50 | * @method Response deletePad($padID) deletes a pad
|
| 51 | + * @method Response movePad($sourceID, $destinationID, $force = false) moves a pad. If force is true and the destination pad exists, it will be overwritten. |
| 52 | + * @method Response copyPad($sourceID, $destinationID, $force = false) copies a pad with full history and chat. If force is true and the destination pad exists, it will be overwritten. |
43 | 53 | * @method Response getReadOnlyID($padID) returns the read only link of a pad
|
| 54 | + * @method Response getPadID($readOnlyID) returns the id of a pad which is assigned to the readOnlyID |
44 | 55 | * @method Response setPublicStatus($padID, $publicStatus) sets a boolean for the public status of a pad
|
45 | 56 | * @method Response getPublicStatus($padID) return true of false
|
46 | 57 | * @method Response setPassword($padID, $password) returns ok or a error message
|
|
55 | 66 | */
|
56 | 67 | class Client
|
57 | 68 | {
|
58 |
| - const API_VERSION = '1.2.7'; |
| 69 | + const API_VERSION = '1.2.13'; |
59 | 70 |
|
60 | 71 | private $apikey = null;
|
61 | 72 | private $url = null;
|
@@ -131,14 +142,25 @@ public static function getMethods()
|
131 | 142 | 'setText' => array('padID', 'text'),
|
132 | 143 | 'getHTML' => array('padID', 'rev'),
|
133 | 144 | 'setHTML' => array('padID', 'html'),
|
| 145 | + 'getAttributePool' => array('padID'), |
| 146 | + 'createDiffHTML' => array('padID', 'startRev', 'endRev'), |
| 147 | + 'restoreRevision' => array('padID', 'rev'), |
| 148 | + 'getRevisionChangeset' => array('padID'), |
134 | 149 | 'getChatHistory' => array('padID', 'start', 'end'),
|
135 | 150 | 'getChatHead' => array('padID'),
|
| 151 | + 'appendChatMessage' => array('padID', 'text', 'authorID'), |
136 | 152 | 'createPad' => array('padID', 'text'),
|
137 | 153 | 'getRevisionsCount' => array('padID'),
|
| 154 | + 'getSavedRevisionsCount' => array('padID'), |
| 155 | + 'listSavedRevisions' => array('padID'), |
| 156 | + 'saveRevision' => array('padID'), |
138 | 157 | 'padUsersCount' => array('padID'),
|
139 | 158 | 'padUsers' => array('padID'),
|
140 | 159 | 'deletePad' => array('padID'),
|
| 160 | + 'movePad' => array('sourceID', 'destinationID'), |
| 161 | + 'copyPad' => array('sourceID', 'destinationID'), |
141 | 162 | 'getReadOnlyID' => array('padID'),
|
| 163 | + 'getPadID' => array('readOnlyID'), |
142 | 164 | 'setPublicStatus' => array('padID', 'publicStatus'),
|
143 | 165 | 'getPublicStatus' => array('padID'),
|
144 | 166 | 'setPassword' => array('padID', 'password'),
|
|
0 commit comments