Skip to content

Instantly share code, notes, and snippets.

View jurasseck's full-sized avatar

Luis Henrique Jurasseck jurasseck

  • CI&T
  • Campo Mourão / PR
View GitHub Profile
public String getIntegrationHeader() {
StringBuilder header = new StringBuilder();
for (Field field : getClass().getDeclaredFields()) {
if (field.isAnnotationPresent(IntegraTalisma.class)) {
header.append(field.getName()).append(FIELD_SEPARATOR);
}
}
return header.toString().substring(0, header.length() - 1) + QUEBRA_LINHA;
}
@jurasseck
jurasseck / actions.php
Created July 24, 2017 17:55
app/controller/astARI/actions.php
<?php
require_once '../../../lib/Util.php';
require_once '../../model/asterisk/ARI.php';
$ari = new \asterisk\ARI();
//extract($_POST);
$action = 'SipReload';