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.
My code for getting folders was this:
wcGetFolders.OpenReadAsync(new Uri("https://www.box.net/api/1.0/rest?action=get_account_tree&api_key=" + api_key + "&auth_token=" + auth_token + "&folder_id=" + currentFolder + "¶ms[]=onelevel¶ms[]=nozip"));
But now with the new API I am unsure on how to format the string.
Previously I was able to put all the parameters inside the uri.
Can I still do that?
The new API help indicates that the request looks like this:
https://api.box.com/2.0/folders/FOLDER_ID \
-H "Authorization: BoxAuth api_key=API_KEY&auth_token=AUTH_TOKEN" \
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.