title: How to consolidate API calls for the ASANA API
body: <p>I'm a freelance web dev and I work with a lot of clients across many different workspaces in Asana. Not being able to get a consolidated view makes this a tedious and difficult thing to manage, so I'm putting together my own little utility to help me get a 'superview' of tasks assigned to me in order of the due date. In order to make this easier for me to scan, I need to have the project name next to the task details.</p>
  
  <p>The easiest way, in my mind, would be a single API call for all tasks assigned to me and request the project name, task name, task id, due date, and workspace name all at once. </p>
  
  <p>The API doesn't seem to allow this consolidated type of request, however, so instead, the workflow goes something like this;</p>
  
  <ol>
  <li>API call to get all my workspaces</li>
  <li>Loop through the workspaces, making an API call for each to get all tasks</li>
  <li>Use PHP to sort those tasks accordingly </li>
  <li>Loop through those tasks making an API call for the first instance of each project in order to get the project name (I cache the data as I
  go so that I'm only making a call once per project)</li>
  </ol>
  
  <p>The issue I'm getting is a 500 error when I start making API calls to get the project details. I doubt I'm hitting the 100 call per minute limit, but I'm still getting the errors none the less. In light of this, I'm looking for a way to make a consolidated call that contains all the data I need, but I can't seem to figure it out. </p>
  
  <p>Anyone have some guidance on this?</p>