Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
dapnetapisendrubricl [2022/01/30 13:22] dj7lc [Example for python3] |
dapnetapisendrubricl [2022/01/30 13:27] (aktuell) dj7lc |
||
---|---|---|---|
Zeile 33: | Zeile 33: | ||
$c->addHeader('Authorization'=>'Basic ' . encode_base64($yourcallsign . ':' . $yourpassword)); | $c->addHeader('Authorization'=>'Basic ' . encode_base64($yourcallsign . ':' . $yourpassword)); | ||
$c->POST('/news', '{"rubricName": "rubric", "text": "'.$message.'", "number": '.$pos.'}', {"Content-type"=>'application/json'}); | $c->POST('/news', '{"rubricName": "rubric", "text": "'.$message.'", "number": '.$pos.'}', {"Content-type"=>'application/json'}); | ||
+ | </code> | ||
+ | |||
+ | ===== set a specific position for the skyper rubric content ===== | ||
+ | |||
+ | Valid positions are integers as char from 1 to 10 | ||
+ | <code> | ||
+ | { "rubricName": "rubric", "text": "this is the message", "number": position } | ||
</code> | </code> |