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" => "colonies",
		"objectAction" => "add",
		"values" => array(
				array(
						"colonyName" => "Add colony test",
						"colonyRegisteredDate" => "1/16/2012",
						"colonyTotalAnimals" => 0,
				),
		),
);

Action edit

Code Block
languagephp
$data = array(
		"token" => $token,
		"tokenHash" => $tokenHash,
		"objectType" => "colonies",
		"objectAction" => "edit",
		"values" => array(
				array(
						"colonyID" => $validPK,
						"colonyName" => "Renamed the colony",
				),
		),
);