We have updated our API Terms of Service. Please review the entire terms before continuing to use the API. Your use of the API means you accept and agree to the updated API Terms of Service found here: https://rescuegroups.org/api-terms-of-service/

Examples

Action add

Add a location.

$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "locations",
	"objectAction" => "add",
	"values" => array(
		0 => array(
			"locationName" => "test",
			"locationPostalcode" => "90210",
			"locationState" => "ZZ",
		),
	),
);
$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

$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"
		),
	),
);
  • No labels