How do you receive data from scripts/direct in the RemoteControl API? #3915
-
Greetings, again! I would like to call core.getJD() using scripts/direct in the RemoteControl API but I don't understand how to receive the resulting output. In Python, this looks like ...
Where does the output get returned? I can't find it anywhere in the response structure (e.g., response.content, response.text, response.raw, etc.). The status_code is 200 so the request appears to be successful. Am I not calling core.getJD() correctly? I've tried 'return core.getJD()' as the code for scripts/direct but that doesn't seem to work either. Any insight would be appreciated. I would like to use the functions in the Calendars plugin but I am stuck on how to receive their output. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I don't think you can get back the return values from the code executed this way. To get current JD you can query |
Beta Was this translation helpful? Give feedback.
Why not just pass the value you got to
core.setJDay()
directly in the same JS code?