Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Examples

Action add

Code Block
languagephp
$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "animalsSponsorships",
	"objectAction" => "add",
	"values" => array(
		array(
			"sponsorshipAnimalID" => "2066365",
			"sponsorshipContactID" => "2266867",
			"sponsorshipDonationID" => "9689",
			"sponsorshipType" => "One Time Sponsorship",
			"sponsorshipStartDate" => "4/1/2013",
			"sponsorshipEndDate" => "5/1/2013",
			"sponsorshipAmount" => "10",
			"sponsorshipPurpose" => "Sponsorship/Donation",
			"sponsorshipStatus" => "Confirmed",
		),
	),
);

Action edit

Code Block
languagephp
$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "animalsSponsorships",
	"objectAction" => "edit",
	"values" => array(
		array(
			"sponsorshipID" => "1702",
			"sponsorshipType" => "One Time Sponsorship",
			"sponsorshipPurpose" => "Memorial",
		),
	),
);