imageloop API function
imagelooop.setLooopPlayerConfig
Category: looop functionsSubcategory: looop player setup
Description:
Set looop player type and configuration variables.
Parameters
Only mandatory parameters must be present for an API call on this function. Parameters marked as a list can occur multiple times in both SOAP and HTTP-RPC style requests.| Name | Type | Mandatory | is List | Description |
|---|---|---|---|---|
looopID
|
uuid | required | ID of the looop to load meta data for | |
name
|
string | internal looop player name | ||
playerConfig
|
map | looop player configuration. For possible values, take a look at the available playerConfig Parameters |
Return Values
The presence of return values depend on the meaning of the API function and status of the requested object. For example, the description value of a looop will not be returned, if it has not been set.| Name | Type | is List | Description |
|---|---|---|---|
name
|
string | internal looop player name. Empty string, if no web player configured. | |
playerConfig
|
map | looop player configuration. Empty map, if no web player configured. |
Errors / Exceptions
playerConfig parameters
| parameter name | possible values | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
textColor | A hexadecimal string in the notation '0x000000', depicting a valid 24-bit RGB value, that is used for display of image titles. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
textDisplay | A boolean value, expressed withe either '1' (true) or '0' (false), indicating if text is to be displayed along to the images in this slideshow. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | Integer value, given in pixels, depicting the width of the display area. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | Integer value, given in pixels, depicting the height of the display area. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
skinType | Comma-delimited string of integers, standing for the various available skins known from the imageloop homepage. Currently available values:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
transitionType | Integer value, standing for the various available transitions as known from the imageloop homepage. Currently available values:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
themeColor | A hexadecimal string in the notation '0x000000', depicting a valid 24-bit RGB value, that is used for display of themes that are used within the slideshow. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
playerBgOpacity | Integer value from 0 - 100, describing the opacity of the player background. (0 = transparent / 100 = opaque). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bgColor | A hexadecimal string in the notation '0x000000', depicting a valid 24-bit RGB value, that is used for display of the slideshow's background. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
textSize | Either "small", "medium" or "large". Default is "medium". | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rendition | A string value having one of the values, that can be obtained via the API-Method 'imagelooop.getAvailableRenditions'. This value decides the source quality of the images shown in the slideshow. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
playerBgColor | A hexadecimal string in the notation '0x000000', depicting a valid 24-bit RGB value, that is used for the background of the player's menu. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
themeType | Integer value, standing for the various available themes as known from the imageloop homepage. Currently available values:
|
API Call examples
HTTP-RPC
Request:The line breaks and white spaces are for better reading only. All request parameters can be passed in the HTTP POST request body instead of a HTTP GET parameter in a URL. Valid HTTP POST content types are
multipart/form-data for
file uploads and application/x-www-form-urlencoded for usual HTML forms.http://www.imageloop.com/httprpc/?apiKey=YOUR-API-KEY
&f=imagelooop.setLooopPlayerConfig
&h=yourwebsite.com - or - &accessToken=application-access-token
&looopID=uuiduuid-uuid-uuid-uuid-uuiduuiduuid
&name=string-value (optional)
&playerConfig= (optional)
Sample response
Sample Response to illustrate what's returned (XML schema) :The line breaks and white spaces are for better reading only.
<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
<response name="name">
<value>string-value</value>
</response>
<response name="playerConfig">
<value></value>
</response>
</imag:Response>
If the function call resulted in an error, no response element but an error element is returned in the above XML. See list of possible errors/exception for the function described on this page.
<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
<error>
<errorCode>error-code</errorCode>
<errorType>error-name</errorType>
<message>optional error message</message>
</error>
</imag:Response>
english
deutsch
français
español
italiano
türkçe