examples/fundraising-pages.php 1 location
|
@@ 19-25 (lines=7) @@
|
| 16 |
|
/** @var \GuzzleHttp\Command\Result $response */ |
| 17 |
|
$response = $client->getPageDonations(['id' => 327]); |
| 18 |
|
|
| 19 |
|
if ($response['response']['code'] === '200') { |
| 20 |
|
foreach ($response['donations'] as $donation) { |
| 21 |
|
echo $donation['id'] . '|'; |
| 22 |
|
} |
| 23 |
|
} else { |
| 24 |
|
echo $response['response']['message']; |
| 25 |
|
} |
| 26 |
|
|
examples/donations.php 1 location
|
@@ 18-23 (lines=6) @@
|
| 15 |
|
// Get list of donations |
| 16 |
|
$response = $client->getDonation(['id' => 37017]); |
| 17 |
|
|
| 18 |
|
if ($response['response']['code'] === '200') { |
| 19 |
|
var_dump($response['donation']); |
| 20 |
|
} else { |
| 21 |
|
echo $response['response']['code'] . ': '; |
| 22 |
|
echo $response['response']['message']; |
| 23 |
|
} |
| 24 |
|
|