Skip to content

Commit

Permalink
made sort an optional param on get all
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris DeGroat committed Jan 14, 2014
1 parent 1984583 commit 4bccca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.php
Expand Up @@ -19,7 +19,7 @@ public static function set_api_key($key, $secret)
self::$secret = $secret;
}

public static function get($controller, $action, $params, $print_url = FALSE)
public static function get($controller, $action, $params = array(), $print_url = FALSE)
{
$params['_key'] = self::$key;
$url = self::$base_url . "/{$controller}/{$action}?" . http_build_query($params);
Expand All @@ -30,7 +30,7 @@ public static function get($controller, $action, $params, $print_url = FALSE)
return self::process_response(curl::get($url));
}

public static function post($controller, $action, $params)
public static function post($controller, $action, $params = array())
{
$params['_key'] = self::$key;
$url = self::$base_url . "/{$controller}/{$action}";
Expand Down

0 comments on commit 4bccca2

Please sign in to comment.