Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
retrieve instead of list_all
Browse files Browse the repository at this point in the history
  • Loading branch information
seowyanyi committed Sep 27, 2016
1 parent 23df506 commit 7a95758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/IntentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
8 changes: 2 additions & 6 deletions lib/Intent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a95758

Please sign in to comment.