Examples

The getSettings and updateSettings actions are explained in the common actions article and are not duplicated here.

Action add

$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "users",
	"objectAction" => "add",
	"values" => array(
		array(
			"userLogin" => "testingUserName",
			"userPassword" => "abc123",
			"userFirstname" => "test",
			"userLastname" => "user via api",
			"userEmail" => "testuser@yahoo.com",
			"userContactID" => "2000131",
			"userType" => "Website",
		),
	),
);

Action edit

$data = array(
	"token" => $token,
	"tokenHash" => $tokenHash,
	"objectType" => "users",
	"objectAction" => "edit",
	"values" => array(
		array(
			"userID" => "9876",
			"userLogin" => "testingEditUserName",
			"userEmail" => "testuser@yahoo.com",
		),
	),
);