Skip to content

Commit

Permalink
Removed some debug code and made it return a simple array
Browse files Browse the repository at this point in the history
  • Loading branch information
sydlawrencedev committed Mar 22, 2012
1 parent 331b9dc commit 3ab075d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lib/EchoNest/Api/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 52,6 @@ public static function oauth_signature($url,$params, $secret) {
}
$i ;
}


echo $param_string."<br/>";

$data = "GET&".urlencode($url). "&".urlencode($param_string);

Expand Down Expand Up @@ -128,8 125,23 @@ function assets($start = 0, $per_page=100)
'results' => $per_page,
'start' => $start
));

$response = $this->returnResponse($response);

$total = $response['total'];

$assets = $response['assets'];

/*
leave out due to api limits
if (count($assets) < $total) {
$next = $this->assets($soFar);
$assets = array_merge($assets, $next);
}
*/

return $assets;

return $this->returnResponse($response);
}

/**
Expand Down

0 comments on commit 3ab075d

Please sign in to comment.