Skip to content

Commit

Permalink
Fetch only relevant data from api
Browse files Browse the repository at this point in the history
  • Loading branch information
fkalis committed Dec 5, 2015
1 parent a8642eb commit a136b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onedrive-base
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function curl_get_children() {

curl \
--silent \
"${api_base_url}/drive/items/${folder_id}/children?access_token=${api_access_token}" | "${json_parser}"
"${api_base_url}/drive/items/${folder_id}/children?access_token=${api_access_token}&select=id,name" | "${json_parser}"

if [ "${PIPESTATUS[0]}" != "0" ]; then
error "Could not get children of '$1'"
Expand All @@ -67,7 +67,7 @@ export -f curl_get_children
function curl_get_children_of_root() {
curl \
--silent \
"${api_base_url}/drive/root/children?access_token=${api_access_token}" | "${json_parser}"
"${api_base_url}/drive/root/children?access_token=${api_access_token}&select=id,name" | "${json_parser}"

if [ "${PIPESTATUS[0]}" != "0" ]; then
error "Could not get children of root folder"
Expand Down

0 comments on commit a136b14

Please sign in to comment.