Get the result of an API request to list discussions.

@param User $actor
@param array $params
@return object
357531
private function getApiDocument(User $actor, array $params)
    {
        return json_decode($this->api->send(ListDiscussionsController::class, $actor, $params)->getBody());
    }
905927
public function getListAction(Tree $tree, UserInterface $user): ResponseInterface
    {
        Auth::checkComponentAccess($this, 'list', $tree, $user);
      
        $listController = new ListController(app(IndividualListService::class), app(LocalizationService::class));
        return $listController->sourceList($tree);
    }
615554
protected function readOperationItem($params = []) {
        /** @var $api */
        extract($params);
        $request = $api['request'];
        $operation = $this->parseOperation($request, $params);
        $operation = $this->applyFilter('Operation', $operation, $params);
        return $operation;
    }
1118760
public function findAllFinished($actor)
    {
        $qb = $this->getQueryBuilder()
            ->where('t.actor = :actor')
            ->andWhere('t.status != :status')
            ->orderBy('t.created', 'desc')
            ->setParameter('actor', $actor)
            ->setParameter('status', 'Unfinished');

        return $qb->getQuery()
            ->getResult();
    }
81105
public function getVoidStatement(Actor $actor): self
    {
        return new Statement(
            null,
            $actor,
            Verb::createVoidVerb(),
            $this->getStatementReference()
        );
    }
384402
public static function factory(CM_Model_User $actor, $verbName, $type) {
        $class = self::_getClassName($type);
        return new $class($verbName, $actor);
    }
977570
public function getPosition(QueuedAction $action, User $user = null)
    {
        $action->setServiceLocator($this->getServiceManager());
        $positions = $this->getPositions($action);
        return count($positions);
    }
564457
private function get($url, Array $params = []) {
        $this->processor->get($url, $params);
        return $this->handleResponse();
    }
636715
static public function jiraGet($url, $user, array $parameterList = [])
    {
        return self::json(
            $url,
            $parameterList,
            self::HTTP_METHOD_GET,
            [
                'Authorization: Basic ' . $user
            ]
        );
    }
416766
public function getListAction(ServerRequestInterface $request, Tree $tree, UserInterface $user): ResponseInterface
    {
        Auth::checkComponentAccess($this, 'list', $tree, $user);
      
        $listController = new ListController(app(IndividualListService::class), app(LocalizationService::class));
        return $listController->individualList($request, $tree, $user, $this);
    }
18066
public function get($uri, array $params = array())
    {

        $uri .= '?' . http_build_query($params);

        $ch = $this->initCurlHandler($uri);
        return $this->makeRequest($ch);

    }
160875
public function get($url, $params=array(), $join=TRUE, $users=TRUE)
    {
      if ($join && $users)
        $url = $this->join($url);
      if ($join && !$users)
        $url = $this->join($url, FALSE);

      return $this->request(API::API_METHOD_GET, $url, $params);
    }
1000864
public function dispatchEventsFor($entity, User $actor = null)
    {
        foreach ($entity->releaseEvents() as $event) {
            $event->actor = $actor;

            $this->events->dispatch($event);
        }
    }
204876
public function userConversations($user)
    {
        $userId = is_object($user) ? $user->getKey() : $user;

        return $this->join('mc_conversation_user', 'mc_conversation_user.conversation_id', '=', 'mc_conversations.id')
            ->where('mc_conversation_user.user_id', $userId)
            ->where('private', true)
            ->pluck('mc_conversations.id');
    }
836017
public function url($action, $params=[]) {
		if(is_array($action))
			return $this->resolver->url($action, $params);
		else
			return $this->resolver->url([get_called_class(), $action], $params);
	}
952431
public function get($user_id, $params = [])
    {
        return User::make($this->client, $user_id)
            ->setParams($params);
    }
577624
public function getFollows($user, $params = [])
  {
      $defaults = [
      'limit'     => 25,
      'offset'    => 0,
      'direction' => 'desc',
      'sortby'    => 'created_at',
    ];

      return $this->wrapper->request('GET', "users/$user/follows/channels", ['query' => $this->resolveOptions($params, $defaults)]);
  }