Die Videos können mit folgendem API Call importiert werden.
curl --cacert .cert/api.cast.switch.ch/quovadis_ca.crt -E .cert/api.cast.switch.ch/daniel.crt \ --key .cert/api.cast.switch.ch/daniel_no_passphrase.key \ -H "Content-type: text/xml" \ -d "<?xml version="1.0" encoding="UTF-8"?><clip><import><object>unterrichtsvideos_ch/ID_12_LK3.mov</object><type>video</type><options><auto_publish>1</auto_publish></options></import></clip>" \ https://cast-test.switch.ch/api/v1/users/166732@switch.ch/channels/11x3clcb2k/clips.xmlw2mfq2m1g => Channel 2523 "secure" 24933@phz.ch => philippe.braxmeier@phz.ch
ID_12_LK3.mov => ID des Videos
password => Passwort des Zertifikates
curl -k --cacert quovadis_ca.crt -E /etc/pki/unterrichtsvideos_api/unterrichtsvideos.ch.crt:password \ --key unterrichtsvideos.ch.key \ -H "Content-type: text/xml" \ -d "<?xml version="1.0" encoding="UTF-8"?><clip><import><object>unterrichtsvideos_ch/ID_12_LK3.mov</object><type>video</type><options><auto_publish>1</auto_publish></options></import></clip>" \ https://cast.switch.ch/api/v1/users/24933@phz.ch/channels/w2mfq2m1g/clips.xmlw2mfq2m1g => Channel 2523 "secure" 24933@phz.ch => philippe.braxmeier@phz.ch
ID_12_LK3.mov => ID des Videos
password => Passwort des Zertifikates