diff --git a/examples/IntentsTest.php b/examples/IntentsTest.php index 0f57638..022e541 100644 --- a/examples/IntentsTest.php +++ b/examples/IntentsTest.php @@ -5,7 +5,7 @@ \Xfers\Xfers::setApiKey('G-zsfAEScrqdU8GhWTEdjfdnb3XRdU8q1fH-nuWfSzo'); \Xfers\Xfers::setSGSandbox(); -$resp = \Xfers\Intent::listAll(); +$resp = \Xfers\Intent::retrieve(); print_r($resp); $intentId = ""; diff --git a/lib/Intent.php b/lib/Intent.php index cbaca95..a99dda0 100644 --- a/lib/Intent.php +++ b/lib/Intent.php @@ -6,13 +6,9 @@ class Intent extends ApiResource { public static $baseUrl = '/intents'; - public static function listAll($params = null, $connectKey = null) + public static function retrieve($connectKey = null) { - $url = self::$baseUrl; - if (!empty($params)) { - $url = self::$baseUrl . "?" . http_build_query($params); - } - return self::_get($url, $connectKey); + return self::_get(self::$baseUrl, $connectKey); } public static function create($params, $connectKey = null)