title: API Rest Python
body: <p>I'm working with <code>Python API Rest</code> between <code>Django</code> and <code>LogicalDOC</code>. I want to display list of directories inside one directory which have this parent ID : 8552450</p>
  
  <p>I'm using this documentation : <a href="http://wiki.logicaldoc.com/rest/#/" rel="nofollow noreferrer">http://wiki.logicaldoc.com/rest/#/</a></p>
  
  <p>So I have this command :</p>
  
  <pre><code>url = 'http://demoged.fr:8009/services/rest/folder/listChildren?folderId=8552450'
  payload = {'folderId': 8552450}
  
  headers = {'Accept': 'application/json'}
  r = requests.get(url,  params=payload, headers=headers, auth=('***', '***'))
  
  rbody = r.content
  print rbody
  </code></pre>
  
  <p>And I get :</p>
  
  <pre><code>[{"id":8978437,"name":"LKJLKJ_OKJKJ_1900-09-12","parentId":8552450,"description":"","lastModified":"2017-02-06 14:45:40 +0100","type":0,"templateId":null,"templateLocked":0,"creation":"2017-02-06 14:45:40 +0100","creator":"Etat Civil","position":1,"hidden":0,"foldRef":null,"attributes":[],"storage":null,"tags":[]}]
  </code></pre>
  
  <p>Then, I just want to get <code>name</code> result :</p>
  
  <pre><code>LKJLKJ_OKJKJ_1900-09-12
  </code></pre>
  
  <p>So I tried 2 things :</p>
  
  <pre><code>print rbody["name"]
  print rbody[1]
  </code></pre>
  
  <p>But it doesn't work. Have you an idea about command I've to write ?</p>
  
  <p>Thank you</p>