@@ 406-413 (lines=8) @@ | ||
403 | * |
|
404 | * @return array|Answer |
|
405 | */ |
|
406 | public function getOfUserIds($ids, array $params = self::QUERY_PARAMS, $serialize = true) |
|
407 | { |
|
408 | $response = Http::instance()->get( |
|
409 | 'users/' . (is_array($ids) ? implode(';', $ids) : $ids) . '/' . self::URL, $params |
|
410 | ); |
|
411 | ||
412 | return $serialize === true ? AnswerSerializer::instance()->serialize($response) : $response; |
|
413 | } |
|
414 | ||
415 | /** |
|
416 | * Returns the answers owned by the user associated with the given access_token. |
|
@@ 451-458 (lines=8) @@ | ||
448 | * |
|
449 | * @return array|Answer |
|
450 | */ |
|
451 | public function getTopOfUserAndTags($userId, $tags, array $params = self::QUERY_PARAMS, $serialize = true) |
|
452 | { |
|
453 | $response = Http::instance()->get( |
|
454 | 'users/' . $userId . '/tags/' . (is_array($tags) ? implode(';', $tags) : $tags) . '/top-' . self::URL, $params |
|
455 | ); |
|
456 | ||
457 | return $serialize === true ? AnswerSerializer::instance()->serialize($response) : $response; |
|
458 | } |
|
459 | ||
460 | /** |
|
461 | * Returns the top 30 answers the user associated with the given |