Login  Register

python script

Posted by Roshan on May 12, 2022; 11:01am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/python-script-tp10903.html

Hello Erman,

I use 1 curl command to generate a token to autostart a pipipeline for Striim.

 curl -X POST -d'username=admin&password=striim$$2022' http://localhost:9080/security/authenticate
{"token":"01ecd1d9-99b0-c511-b106-005056819aa2"}[striim@RB-BD-STRIM-NEW ~]$

Is there any python code to call the curl command and save this token in a variable?

Thanks,

Roshan