LumApps is an employee experience platform that engages every employee with personalized communications, regardless of location or language, and empowers them to do their best work by connecting them with the tools, people and information they need to get the job done.
Authentication
Follow the instructions at https://apiv1.lumapps.com/#section/Getting-started to learn more on how to authenticate your calls to LumApps' APIs.
You can either pass to the function a valid user JWT using the authToken parameter (if this app is integrated in a LumApps widget) OR setup the app with valid Google Service Account credentials as explained in the documentation above and only pass the email of the user on behalf of which you are making the current request (server to server).
Usage
With a user's JWT:
do res = App(
"lumapps",
authToken="USER_JWT",
baseUrl="https://mysite.lumapps.com",
endpoint="/user/directory/list",
method="GET",
query={}, // any URL parameters required for the request
body={}, // the body for the request
headers={}, // any additional headers required for the request
)
// Requests will return a `success` parameter that you can verify before using the body
if (res.success) {
debug res.data // print the actual response from LumApps
}
When using a Google Service Account:
do res = App(
"lumapps",
currentUserEmail="SOMEONE@DOMAIN.COM", // this will be used server-side to perform the requests
baseUrl="https://mysite.lumapps.com",
endpoint="/user/directory/get",
method="GET",
query={}, // any URL parameters required for the request
body={}, // the body for the request
headers={}, // any additional headers required for the request
)
// Requests will return a `success` parameter that you can verify before using the body
if (res.success) {
debug res.data // print the actual response from LumApps
}