public static function getPlaylistURLService($playlistID) { if (!is_numeric($playlistID)) { return false; } $return = parent::apiCall('getPlaylistURLFromPlaylistID', array('playlistID' => $playlistID)); if (isset($return['decoded']['result'])) { return $return['decoded']['result']; } else { return false; } }
private function getUserIDFromUsername($username = null) { if ($username) { $this->setUsername($username); } if ($this->getUsername()) { $return = parent::apiCall('getUserIDFromUsername', array('username' => $this->getUsername())); if (isset($return['decoded']['result']['UserID'])) { $this->setUserID((int) $return['decoded']['result']['UserID']); return $this->userid; } else { return false; } } else { return false; } }