Benutzer-Werkzeuge

Webseiten-Werkzeuge


dapnetapisendrubricl

Send rubric content via REST-API

Just an example in Perl from https://github.com/DecentralizedAmateurPagingNetwork/DxClusterInterface/blob/master/dxclusterspider_db0sda

$c = REST::Client->new();
$c->setHost("$dapnethost:$dapnetport");
$c->addHeader('Authorization'=>'Basic ' . encode_base64($dapnetuser . ':' . $dapnetpw));

$c->POST('/news', '{"rubricName": "dx-kwcw", "text": "'.$nachricht.'", "number": '.$pos.'}', {"Content-type"=>'application/json'});
dapnetapisendrubricl.txt · Zuletzt geändert: 2018/03/13 15:06 von dh3wr