Skip to content

GetFundraisingPageDonations

Pawel Sawicz edited this page Jan 26, 2015 · 8 revisions

GetFundraisingPageDonations

C# Usage

var response = client.Page.RetrieveDonationsForPage("page-short-name");
if (response.Donations != null)
            {
                foreach (var donation in response.Donations)
                {
                    var donationAmount = donation.Amount;
                }
            }

PHP Usage

$response = $client->Page->RetrieveDonationsForPage("page-short-name");

echo $response->id;

foreach ($response->donations as $key){
	echo $key->amount;
	echo "\n";	
	echo $key->currencyCode;
}