Setting Up Bright Sync
Bright Sync is a mechanism that allows for your Bright data [including the underlying SCORM Cloud data], to be synced into your WordPress or Drupal environment in real time.</p>
<p>This would be useful for local reporting that integrated with local database tables without having to use the SCORM Cloud or Bright apis.</p>
<h1>Api Keys</h1>
<p>You must configure a local API key in your Bright settings:</p>
<p>In the WordPress admin panel, go to the Bright section and select settings. Then click on the ApiKeys tab and setup the</p>
<ul>
<li>Local API Key</li>
<li>Local Secret Key</li>
</ul>
<h1>Enable Sync</h1>
<p>In the WordPress admin panel, go to the Bright section and select settings. Then select <em>plugin function</em>, and enable Sync.</p>
<h1>Hooking Into Incoming Sync Requests</h1>
<p>You can hook your own code to process callbacks that store records from Bright [registrations or learning paths]</p>
<p>The following shows an example that attaches a local code block to a message from Bright showing learning path data has changed.</p>
<pre><code class="language-php"> add_action('bright_after_bright_learning_path_status_sync', function($data,$formats) {
/ $data is an Array of the $_POST data received from the Bright Server /
/ $formats is an Array of formats representing the expected datatype of each incoming data field, as can be used for SQL statements or printf, etc. /
/* do some custom action here */
}, 10, 2);</code></pre>
<p>or for bright registrations</p>
<pre><code class="language-php">add_action('bright_after_bright_registrations_sync', function($data,$formats) {
/ use $data[] to do something with the record /
}, 10, 2);</code></pre>
<h1>Pricing</h1>
<p>As of Fall 2021, Bright Sync is a for-pay add-on and please <a href="mailto:support@aura-software.com">contact support</a> or check the <a href="https://bright.aura-software.com/pricing">Bright Pricing Page</a> for what pricing plans are available.


