public function getCollectionContent() { $url = sprintf("%s/bs3/%s/%s/%s/init", Domain::bootstrap($this), $this->getSite()->getNetwork()->getData()->getName(), $this->getSite()->getData()->getId(), base64_encode($this->getData()->getArticleId())); $response = Client::GET($url); return json_decode($response); }
public static function getTimelineStream(TimelineCursor $cursor, $isNext) { $url = self::getTimelineUrl($cursor->getCore()) . "?resource=" . $cursor->getData()->getResource() . "&limit=" . $cursor->getData()->getLimit(); if ($isNext) { $url .= "&since=" . $cursor->getData()->getCursorTime(); } else { $url .= "&until=" . $cursor->getData()->getCursorTime(); } $response = Client::GET($url, self::getHeaders($cursor->getCore())); return json_decode($response); }
public static function getTimelineStream($core, $resource, $limit = 50, $until = null, $since = null) { $url = self::getTimelineUrl($core) . "?resource=" . $resource . "&limit=" . $limit; if (isset($until)) { $url .= "&until=" . $until; } elseif (isset($since)) { $url .= "&since=" . $since; } $response = Client::GET($url, self::getHeaders($core)); return json_decode($response->body); }
public function getCollectionContent($articleId) { $url = sprintf("%s/bs3/%s/%s/%s/init", Domain::bootstrap($this), $this->_network->getName(), $this->_id, base64_encode($articleId)); $response = Client::GET($url); return json_decode($response->body); }