MyTokens Support

FastShot provides two integration points with MyTokens:

  • API Integration - FastShot exposes tokens that can be invoked from any MyTokens aware module to display images with Lightbox script.
  • Token Replacement in image captions and descriptions.

API Integration

FastShot uses MyToken API to expose tokens that will get replaced with individual images. When clicked, images will expand with the Ligthbox script.

To better understand this integration, let's take an example. Assume we have an HTML module that describes an application. From time to time we want to display a screenshot from the application. We already have a FastShot module configured to display all screenshots.

Then, we simply invoke MyTokens to inject the image we need and where we need it. The code for the html module could look like this.

Example

Product Presentation

1. Once installed you will see a window as in the screenshot above
[FastShot:ByName(ModuleId=123,Name='Main Window')]

2. Now click button below the title to execute command.
[FastShot:ByName(ModuleId=123,Name='Execute Command Button')]

Below is full documentation of available API. Note that if you have MyTokens installed, the documentation is also available under 3rd Party Tab in Left Pane.



[FastShot:Random]

Returns a random image from the specified module.

Default Cache Time: 0 seconds

Parameters:

  • [required] [optional] Int32 ModuleId - Id of the module to extract random image from.

Syntax:

  • [FastShot:Random(ModuleId=(Integer Number))]

Examples:

  • [FastShot:Random(ModuleId=100)]
    Returns random image from the FastShot module with id 100.



[FastShot:ByName]

Returns a image identified by name from the specified module.

Default Cache Time: 0 seconds

Parameters:

  • [required] [optional] Int32 ModuleId - Id of the module to extract the image from.
  • [required] [optional] String Name - Name of the image to retrieve.

Syntax:

  • [FastShot:ByName(ModuleId=(Integer Number),Name="(Literal String)")]

Examples:

  • [FastShot:ByName(ModuleId=100,Name='Sunset Image')]
    Returns image with name Sunset Image from the FastShot module with id 100.



[FastShot:Latest]

Returns latest added image from the specified module.

Default Cache Time: 0 seconds

Parameters:

  • [required] [optional] Int32 ModuleId - Id of the module to return latest image from.

Syntax:

  • [FastShot:Latest(ModuleId=(Integer Number))]

Examples:

  • [FastShot:Latest(ModuleId=100)]
    Returns last added image from the FastShot module with id 100.



Token Replacement

FastShot will automatically replace tokens inside image captions and descriptions. All tokens exposed by MyTokens are available.