nid, array(22503))) {
// here you need to handle your fields
$body = 'Posted by: ' . $submission->data[2]['value'][0] . '
';
$body .= $submission->data[3]['value'][0] . '
';
$body .= '------------------' . '
';
$body .= $submission->data[5]['value'][0] . '
';
$xml =
'
9
' . $submission->data[4]['value'][0] . '
' . htmlspecialchars($body) . '
-1
19
1
';
$gemini_url = 'http://your-gemini-address/api/issues.ashx/issuespartial'; // you need to edit this
$gemini_user = base64_encode('gemini.user'); // you need to edit this
$gemini_token = base64_encode('gemini.user.token'); // you need to edit this
$client = new Zend_Http_Client();
$client->setUri($gemini_url);
$client->setMethod(Zend_Http_Client::POST);
// Set headers
$client->setHeaders('Content-type', 'text/xml');
$client->setHeaders('Accept', 'application/json');
$client->setHeaders('gemini-username-token', $gemini_user);
$client->setHeaders('gemini-api-token', $gemini_token);
$client->setRawData($xml);
$response = $client->request();
}
}