コード例 #1
0
 public function testTimelineStream()
 {
     $network = $this->network;
     $cursor = CursorFactory::getPersonalStreamCursor($network, $this->config->USER_ID);
     $data = $cursor->next();
     $data = $cursor->previous();
 }
コード例 #2
0
 public function testTopicStreamCursor()
 {
     $topicId = "topic";
     $label = "label";
     $tsResource = sprintf("urn:livefyre:%s.fyre.co:topic=%s:topicStream", $this->network->getNetworkName(), $topicId);
     $topic = Topic::create($this->network, $topicId, $label);
     $cursor = CursorFactory::getTopicStreamCursor($this->network, $topic);
     $this->assertEquals($tsResource, $cursor->getData()->getResource());
     $cursor = CursorFactory::getTopicStreamCursor($this->network, $topic, $this::LIMIT, time());
     $this->assertEquals($tsResource, $cursor->getData()->getResource());
     $this->assertEquals($this::LIMIT, $cursor->getData()->getLimit());
 }