public function login($args) { $this->_checkCurl(); $pivotalUser = $args['u']; $pivotalPass = $args['p']; $pivotal = new PivotalTracker(); $this->pivotalToken = $pivotal->getUserToken($pivotalUser, $pivotalPass); if ($this->pivotalToken == false) { $this->exception($pivotal->output); } $this->insertUser($pivotalUser, $this->pivotalToken, $pivotal->membershipId); $this->showJson(true, array('token' => $this->pivotalToken, 'membershipId' => (string) $pivotal->membershipId)); }
/** * Get's the privotal tracker stories based on a filter. * * @param <type> $config * @param <type> $filter * @return <type> */ function getStories($args) { // Now create a new PivotalTracker object. $pivotal = new PivotalTracker($args['token']); $args['filter'] = isset($args['filter']) ? 'label:"' . $args['filter'] . '"' : ''; $args['filter'] .= 'includedone:true'; return $pivotal->stories_get_by_filter($args['project'], $args['filter']); }