Jump to content

Intergation from the old API to new


joeleveson

Recommended Posts

Hello,
 
I'm currently switching my api from the old to the new and trying to get hold of some of the relevant commands. The latest one I am having trouble with is retriving the task from earlier:
 
current_catagory = project['project_schema'].get_types('AssetBuild'):
tasks = current_catagory['tasks']
for task in tasks:
    task_id = task['id']
 
 
I tried storing the task id and retriveing it with the new api but it returned None:
 
task = session.get('Task',task_id )
 
If anyone knows where I might be going wrong here that would be great.
 
Thanks
 
Joe

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...