/**
  * Поиск новостей
  * @param string $query
  * @param int $offset
  * @param int $count
  * @return \GFB\SocialClientBundle\Entity\Vkontakte\Post[]
  */
 public function newsFeedSearch($query = "", $offset = 0, $count = 200)
 {
     // https://api.vk.com/method/newsfeed.search?q=hello&offset=0&count=200
     $context = array("q" => $query, "offset" => $offset, "count" => $count);
     $response = parent::prepareRequest(self::METHOD_NEWSFEED_SEARCH, $context)->send();
     $data = $this->prepareResponse($response->getBody());
     $posts = $this->hydrator->getPosts($data);
     return $posts;
 }
 /**
  * @param string $data
  * @return array
  */
 protected function prepareResponse($data)
 {
     return parent::prepareResponse($data)["data"];
 }