@@ 175-184 (lines=10) @@ | ||
172 | /** |
|
173 | * @inheritdoc |
|
174 | */ |
|
175 | public function getMessages($userId = null) |
|
176 | { |
|
177 | if ($userId !== null) { |
|
178 | $path = $this->buildPath(static::MESSAGES_USER_LIST_ENDPOINT, $userId); |
|
179 | } else { |
|
180 | $path = $this->buildPath(static::MESSAGES_LIST_ENDPOINT); |
|
181 | } |
|
182 | ||
183 | return $this->performRequest('GET', $path); |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * @inheritdoc |
|
@@ 333-342 (lines=10) @@ | ||
330 | /** |
|
331 | * @inheritdoc |
|
332 | */ |
|
333 | public function getBookmarks($userId = null) |
|
334 | { |
|
335 | if ($userId !== null) { |
|
336 | $path = $this->buildPath(static::BOOKMARKS_USER_ENDPOINT, $userId); |
|
337 | } else { |
|
338 | $path = $this->buildPath(static::BOOKMARKS_ALL_ENDPOINT); |
|
339 | } |
|
340 | ||
341 | return $this->performRequest('GET', $path); |
|
342 | } |
|
343 | ||
344 | /** |
|
345 | * @inheritdoc |