LLodi Agent

Last updated 10 days ago

Proxy

{your agent URL}/proxy?{your final endpoint}

This function allows you to make a request from the LLodi Agent, hence avoiding CORS issues.

Request
Response

Make the request as your final endpoint expects it: method, headers, payload...

You can add the header "llodi-auth" to use one of the connections created in your LLodi Agent.

Remember to include the header "llodi-key" if you have added it.

The LLodi Agent will bounce the response from the final endpoint as it is.

Example Proxy Request
GET https://myagent.com:8089/proxy?https://myJIRA.atlassian.net/rest/api/2/search
?jql=project=LLD&maxResults=20
HTTPHEADERS
llodi-key : "6f473260-74a5-f131-76ec-2e1dec040159"
llodi-auth : "MyJIRAConnection"
Example Proxy Response from JIRA API
{
"expand": "schema,names",
"startAt": 0,
"maxResults": 20,
"total": 242,
"issues": [
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "15924",
"self": "https://myJIRA.atlassian.net/rest/api/2/issue/15924",
"key": "LLD-278",
"fields": {
"issuetype": {
...

Qlik Sense

post
Ping QRS

{your agent URL}
/sense/ping
Make a ping request to ensure your Qlik Sense Repository Service is running.
Request
Response
200: OK
{
"status": "ok",
"result": "Ping successful."
}
404: Not Found
{
"status": "error"
}

post
Ping Engine

{your agent URL}
/sense/engine
Make a ping request to ensure your Qlik Sense Engine is running.
Request
Response
200: OK
{
"status": "ok",
"result": {
"qReturn": "4.0.X"
//qReturn is the current version of your Qlik Sense Engine
}
}
400: Bad Request
{
"status": "error",
"result": {
"code": "ECONNREFUSED",
"errno": "ECONNREFUSED",
"syscall": "connect",
"address": "XXX.XX.XX.XX",
"port": 4747
}
}

post
Trigger

{your agent URL}
/sense/trigger
Insert some variables in a Qlik Sense App and reload it.
Request
Response
Headers
content-type
required
string
application/json
llodi-key
optional
string
(if required)
Body Parameters
app_id
required
string
ID of the Qlik App to trigger
tab_name
optional
string
Tab to insert variables.
tab_action
optional
string
Overwrite (default)/Append/Prepend
200: OK
{
"status": "ok",
"result": "Script modified and reload triggered!"
}

app_id, tab_name and tab_action can also be sent as query parameters.

Example Trigger Request
{
"app_id": "00xx00xx-x0x0-0x00-8270-aaa111111e11",
"tab_name": "My_LLoditab",//defaults to 'Tab Generated by LLodi'
"tab_action": "append",//defaults to 'overwrite'
"field1":"value1",
"field2":"value2",
}
Qlik Sense Script Result
LET field1 = 'value1';40
LET field2 = 'value2';

Find some cool use cases for the Trigger feature.

Social

post
Send Email

{your agent URL}
/email
Request
Response
Headers
content-type
required
string
application/json
llodi-key
optional
string
(if required)
200: OK
Example Payload
{
"from":"plain ‘sender@server.com’ or formatted ’“Sender Name” sender@server.com‘",
"to":"Comma separated list of recipients",
"cc":"Comma separated list of CC recipients",
"bcc":"Comma separated list of BCC recipients",
"subject":"The subject of the email",
"html":"<b>The content of the email, formatable with HTML code</b>"
}

You can also attach objects (see Using attachments for details). Attachments can be used for embedding images as well.

post
Send SMS

{your agent URL}
/sms
Request
Response
Headers
content-type
required
string
application/x-www-form-urlencoded
llodi-key
optional
string
(if included)
Body Parameters
from
optional
string
check your SMS provider account
to
required
string
include international prefix
text
required
string
the body of your message
200: OK
Example Response from Twilio
Example Response from Nexmo
{
"status": "ok",
"result": {
"accountSid": "AC3b82eb9e8fae4b4effa71856153e6e63",
"apiVersion": "2010-04-01",
"body": "Sent from your Twilio trial account",
"dateCreated": "2018-12-03T12:22:17.000Z",
"dateUpdated": "2018-12-03T12:22:17.000Z",
"dateSent": null,
"direction": "outbound-api",
"errorCode": null,
"errorMessage": null,
"from": "+34999999999",
"messagingServiceSid": null,
"numMedia": "0",
"numSegments": "1",
"price": null,
"priceUnit": "USD",
"sid": "Sacoma3524eae41c69d09a6481ba394dc",
"status": "queued",
"subresourceUris": {
"media": "/2010-04-01/Accounts/RA3b82eb9e8fae4b4effa71856153e6e81/Messages/Sacoma3524eae41c69d09a6481ba394dc/Media.json"
},
"to": "+34666666666",
"uri": "/2010-04-01/Accounts/RA3b82eb9e8fae4b4effa71856153e6e81/Messages/Sacoma3524eae41c69d09a6481ba394dc.json"
}
}

post
Send Tweet

{your agent URL}
/twitter
Send a tweet from your account.
Request
Response
Headers
content-type
required
string
application/json
llodi-key
optional
string
(if required)
Body Parameters
status
required
string
Content of the tweet.
200: OK

Connecting your Twitter Account.