FastShot provides two integration points with MyTokens:
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:
Syntax:
Examples:
[FastShot:ByName]
Returns a image identified by name from the specified module.
Default Cache Time: 0 seconds
Parameters:
Syntax:
Examples:
[FastShot:Latest]
Returns latest added image from the specified module.
Default Cache Time: 0 seconds
Parameters:
Syntax:
Examples:
Token Replacement
FastShot will automatically replace tokens inside image captions and
descriptions. All tokens exposed by MyTokens are available.
|
|