public function setParameterGet($name, $value = null) { if (is_array($name)) { foreach ($name as $k => $v) { $this->_setParameter('GET', $k, $v); } } else { $this->_setParameter('GET', $name, $value); } return $this; }
public function indexAction() { $client = new Zend_Http_Client('https://ws.pagseguro.uol.com.br/v2/sessions/'); $client->setMethod(Zend_Http_Client::POST); $client->setParameterGet('email', '*****@*****.**'); $client->setParameterGet('token', '9F79900A9B454CE6B18613D7224C0621'); $client->request(); var_dump($client->getLastResponse()->getBody()); }