Welcome Apps REST API

What's new in V16?

Updated Playback and Recording Signatures
Speed Improvements
Split Libraries
React Component + NPM


Updated Signatures

If you use recording and/or playback signatures to increase the security of your CameraTag products you will need to update your signatures when upgrading to v16. You can read all about the new signature process in the app signature docs

Splitting The CameraTag Products

We have traditionally bundled all of the CameraTag embeds (camera, microphone, photobooth, player, wall, photo) into a single JS file which contained a single JS Class named CameraTag. The time has come to give each product its own JS file and its own JS Class. Starting with v16 each CameraTag embed can be loaded separately. This will slightly change the JS API: moving class methods (such as setup, fire, observe) from the previous monolithic CameraTag class into the new product specific classes. Below is a before and after example of some simple code to load a <camera> and then fire an alert once it's initialized.

BEFORE:

<script src='//staging.cameratag.com/api/v16/js/cameratag.js' type='text/javascript'></script>
<link rel='stylesheet' href='//staging.cameratag.com/v16/css/cameratag.css'></link>

<camera id="myCamera" data-uuid="[YOUR_APP_UUID]"/>

<script>
  CameraTag.observe("myCamera", "initilized", function(){
    alert("initialized!")
  })
</script>

NOW:
(Note the change of the JS URL from cameratag.js to camera.js and the change of the JS class from CameraTag to CameraTagCamera:)

<script src='//staging.cameratag.com/api/v16/js/camera.js' type='text/javascript'></script>
<link rel='stylesheet' href='//staging.cameratag.com/v16/css/cameratag.css'></link>

<camera id="myCamera" data-uuid="[YOUR_APP_UUID]"/>

<script>
  CameraTagCamera.observe("myCamera", "initilized", function(){
    alert("initialized!")
  })
</script>

Below is a table that outlines the new URL and Class name for each of the CameraTag embeds. for any of the products to see what the new embed codes look like for you.

Prodct JS URL JS Class Name
<camera> //staging.cameratag.com/api/v16/js/camera.js CameraTagCamera
<microphone> //staging.cameratag.com/api/v16/js/microphone.js CameraTagMicrophone
<photobooth> //staging.cameratag.com/api/v16/js/photobooth.js CameraTagPhotobooth
<player> //staging.cameratag.com/api/v16/js/player.js CameraTagPlayer
<wall> //staging.cameratag.com/api/v16/js/wall.js CameraTagWall
<photo> //staging.cameratag.com/api/v16/js/photo.js CameraTagPhoto

New NPM Modules and React Components

We have introduced 12 new packages to the NPM to make including CameraTag in your product even easier.

Product URL Package Name
<camera> https://www.npmjs.com/package/@cameratag/camera @cameratag/camera
<microphone> https://www.npmjs.com/package/@cameratag/microphone @cameratag/microphone
<photobooth> https://www.npmjs.com/package/@cameratag/photobooth @cameratag/photobooth
<player> https://www.npmjs.com/package/@cameratag/player @cameratag/player
<wall> https://www.npmjs.com/package/@cameratag/wall @cameratag/wall
<photo> https://www.npmjs.com/package/@cameratag/photo @cameratag/photo
React <camera> https://www.npmjs.com/package/@cameratag/react_camera @cameratag/react_camera
React <microphone> https://www.npmjs.com/package/@cameratag/react_microphone @cameratag/react_microphone
React <photobooth> https://www.npmjs.com/package/@cameratag/react_photobooth @cameratag/react_photobooth
React <player> https://www.npmjs.com/package/@cameratag/react_player @cameratag/react_player
React <wall> https://www.npmjs.com/package/@cameratag/react_wall @cameratag/react_wall
React <photo> https://www.npmjs.com/package/@cameratag/react_photo @cameratag/react_photo