Versions Compared

Key

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

Examples

Action add

Add a location.

Code Block
languagephp
$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "locations",
	"objectAction" => "add",
	"values" => array(
		0 => array(
			"locationName" => "test",
			"locationPostalcode" => "90210",
			"locationState" => "ZZ",
		),
	),
);
Code Block
languagephp
$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "locations",
	"objectAction" => "add",
	"values" => array(
		array(
			"locationName" => "add location during test",
			"locationUrl" => "http://yahoo.com",
			"locationAddress" => "123 Street Address",
			"locationCity" => "Somewhere",
			"locationState" => "PA",
			"locationPostalcode" => "90210",
			"locationCountry" => "695",
			"locationPhone" => "3018055081",
			"locationPhoneExt" => "201"
		),
	),
);

Action edit

Code Block
languagephp
$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "locations",
	"objectAction" => "edit",
	"values" => array(
		array(
			"locationID" => $validPK,
			"locationName" => "edited location during test",
			"locationUrl" => "http://yahoo.com",
			"locationAddress" => "123 Street Address",
			"locationCity" => "Somewhere",
			"locationState" => "PA",
			"locationPostalcode" => "20715",
			"locationCountry" => "695",
			"locationPhone" => "3018055081",
			"locationPhoneExt" => "201"
		),
	),
);