/** * 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; }
/** * 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'] : ''; }