示例#1
0
 /**
  * Returns other polls.
  *
  * @return Poll[]
  */
 public function getOtherPolls()
 {
     $data = array('fullList' => 'true', 'locale' => $this->locale, 'token' => $this->token);
     $response = $this->doGet('/np/users/me/dashboard/otherPolls', $data);
     $polls = json_decode($response, true);
     $objects = array();
     if (!empty($polls['otherPolls']['otherPolls'])) {
         foreach ($polls['otherPolls']['otherPolls'] as $poll) {
             $objects[] = $this->pollRepository->create($poll);
         }
     }
     return $objects;
 }
示例#2
0
 /**
  * Returns the export Print URL.
  *
  * @return string
  */
 public function getExportPrintUrl()
 {
     if ($this->_info === null && $this->_repository !== null) {
         $this->_repository->injectInfo($this);
     }
     return !empty($this->_info['exportPrintUrl']) ? 'https://doodle.com' . $this->_info['exportPrintUrl'] : '';
 }