title: Example for Box-API calls
body: <p>I have been using box-api v1.0 and now see there is a new one and would like to take advantage of it. However I am very new to REST and don't really understand what to do here.</p>
  
  <p>My code for getting folders was this:</p>
  
  <pre><code>wcGetFolders.OpenReadAsync(new Uri("https://www.box.net/api/1.0/rest?action=get_account_tree&amp;api_key=" + api_key + "&amp;auth_token=" + auth_token + "&amp;folder_id=" + currentFolder + "&amp;params[]=onelevel&amp;params[]=nozip"));
  </code></pre>
  
  <p>But now with the new API I am unsure on how to format the string.</p>
  
  <p>Previously I was able to put all the parameters inside the uri.</p>
  
  <p>Can I still do that? </p>
  
  <p>The new API help indicates that the request looks like this:</p>
  
  <pre><code>https://api.box.com/2.0/folders/FOLDER_ID \
  -H "Authorization: BoxAuth api_key=API_KEY&amp;auth_token=AUTH_TOKEN" \
  </code></pre>
  
  <p>I don't know what to do with the backslashes and the quotes, basically I don't know at all how to format the uri and even if all the -h etc parameters actually go into it at all. </p>