Re: Authentication with shotrunner xml
On Apr 13, 2009, at 7:05 AM, Sunit Parekh-Gaihede wrote:
I've written a simple python script that creates a sequence/shot dictionary from
the shots.xml and sequence.xml files. I'm having trouble getting
authentication from the respective urls, though. This is also the
case from a browser - if I browse directly to:http://hydralab.shotrunner.com/shots.xml
my standard user authentication doesn't work. Is this something you
can help with? For the short term, we can definitely just grab the
xml files manually, and put them on our systems.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by cameron on 13 Apr, 2009 02:58 PM
This is task 652 awaiting estimation. Priority set to high.
Support Staff 3 Posted by cameron on 21 Apr, 2009 03:10 PM
We managed to fix the problem with using basic authentication on the XML API.
Here is an example:
For some reason, you can omit the headers and it still works:
The trick is that you must include the project number in the URL, or you will get redirected. Unfortunately, the XML for projects is not working yet. To list projects you'll have to scrape the HTML:
And look for the string: 'a href="/projects/'
Here are some examples:
List all sequences:
List one sequence:
List all shots:
List one shot:
List all tasks:
List one task:
List tasks using "My Tasks" filter:
Updating a field:
Here is a very simple Python script that retrieves the sequence names:
cameron resolved this discussion on 21 Apr, 2009 03:10 PM.