RUM JavaScript code API - GET RUM JavaScript code - inline
Returns the inline code for the most recent RUM JavaScript code. You can also obtain it as an HTML tag.
HTML tag and inline code of the RUM JavaScript code are functionally equivalent.
The request produces plain/text
payload.
GET |
|
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
applicationid | string | The DESK entity ID of the application. You can obtain it from the response of the GET the list of manually injected applications call. |
path | required |
Response format
The response in the plain text, containing the inline HTML code for the most recent RUM JavaScript code version for the specified application.
Example
In this example the request fetches the inline HTML code for the latest version of the RUM JavaScript code for the easyTravel Ionic Web application, which has the ID of APPLICATION-BBFA55551D507E2B.
The API token is passed in the Authorization header.
The result is truncated to the first line.
Curl
curl -X GET \
https://mySampleEnv.live.dexp.ae/api/v1/rum/jsInlineScript/APPLICATION-BBFA55551D507E2B \
-H 'Authorization: Api-Token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dexp.ae/api/v1/rum/jsInlineScript/APPLICATION-BBFA55551D507E2B
Response body
<script type="text/javascript" data-dtconfig="app=bbfa55551d507e2b|cors=1|srms=1,1,,,|featureHash=ICA27SVfgqrx|dpvc=1|srad=1|lastModification=0|dtVersion=10156181011154332|reportUrl=https://mySampleEnv.live.dexp.ae/bf|tp=500,50,0,1|rdnt=1|bp=2|featureHash=ICA27SVfgqrx|dtVersion=10156181011154332|lastModification=1539076354681|auto=true">
Response code
200