Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Hello, I'm trying to collect some data from my Moodle database made available via webservice, but at LHC the data returns an empty array []. Doing the same in a javascript code, I get the returns. Is there a tutorial or video that demonstrates how to use it? Follow prints
Offline
Offline
Hi, I managed to get the information correctly, thank you very much.
I would like to ask another question. In that first API call, the return shows me the user ID. Would it be possible for me to store this ID in a variable, so that I can call another API request using this variable?
Example:
use an api, collect the id and call another api using that collected id
Offline
Yes, use update current chat trigger response there is option to save variable. Also see samples in the doc…
Offline
Hi, I managed to get the information correctly, thank you very much.
I would like to ask another question. In that first API call, the return shows me the user ID. Would it be possible for me to store this ID in a variable, so that I can call another API request using this variable?
Example: https://forum.livehelperchat.com/img/33 … 6918_a.png
use an api, collect the id and call another api using that collected id
Please don't share on the forum pictures with email address,
thank you.
Email address exposed can be attacked by spam or malware and can be some user data that must be stay private and not public
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Yes, use update current chat trigger response there is option to save variable. Also see samples in the doc…
I'm trying to do this too.
I was unable to complete the process following the documentation.
Would it be something like this?
Offline
Offline
I'm sorry, but I'm having trouble even with the documentation
I managed to retrieve the value of the array through the documentation.
forum.livehelperchat.com/viewtopic.php?id=4127
I just can't save the value in a variable, to reuse it in a new REST API query
remdex if you can direct me I would be very grateful
Offline
https://doc.livehelperchat.com/docs/bot … out-coding
See above how variables are set and reused
Offline
remax, thank you for the answer, and I really tried and read the link you sent me, but I really wasn't able to save the return I have from the REST API query, which I get correctly with Contract ID after consulting the User ID, to perform a new one User Agreement REST API query.
So I'm going to change (create) my API, a method to return the values in a single block. I don't think it's the right way to do it, but it will be the way I know how to do it.
Offline
Pages: 1