# jetformbuilder/3.6.6/modules/active-campaign/api/sync-contact-action.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 45 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/active-campaign/api/sync-contact-action.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/active-campaign/api/sync-contact-action.php
- Modified: 2023-11-20T11:46:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/active-campaign/api/sync-contact-action.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Active_Campaign\Api;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

/**
 * @since 2.1.4
 * @link https://developers.activecampaign.com/reference/sync-a-contacts-data
 *
 * Class Sync_Contact_Action
 * @package JFB_Modules\Active_Campaign\Api
 */
class Sync_Contact_Action extends Base_Action {

	protected $contact = array();

	public function action_headers() {
		return array(
			'Content-Type' => 'application/json',
		);
	}

	public function action_endpoint() {
		return 'contact/sync';
	}

	public function action_body() {
		return array(
			'contact' => $this->contact,
		);
	}

	public function set_contact( array $contact ): self {
		$this->contact = $contact;

		return $this;
	}

}

```
