Hi, I'm a programmer too. You may want to try/check out this code: https://github.com/magapp/blueiriscmd/blob/master/blueiris.py.
Basically, you request a "session response" by logging onto the BI webserver with your user and password values. You save that "session response" and use it for...