Permalink
Browse files

Fixes #4 wrong param pass to api

  • Loading branch information...
1 parent 5d00924 commit d17adfe3c3ca118a90a92f1e91b3c821b2ed047a @thousandsofthem thousandsofthem committed Apr 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IronMQ.class.php
View
@@ -316,7 +316,7 @@ public function getMessages($queue_name, $count=1) {
$url = "projects/{$this->project_id}/queues/{$queue_name}/messages";
$params = array();
if($count > 1) {
- $params['count'] = $count;
+ $params['n'] = $count;
}
$this->setJsonHeaders();
$response = $this->apiCall(self::GET, $url, $params);

0 comments on commit d17adfe

Please sign in to comment.