-
-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass a variable parameter when connecting through a web API? #1378
Comments
By the way you can actually do this using script, it might require you do some nodejs programming but it is worth it. And on your click event simply simply select action to "Run Script", you script something like this, and accepts your API URL as parameter.
Your headers, parameters and URL might be a parameter on your script, or you can hard coded it directly on your script. |
Thank you everyone, let's give it a try |
May I ask how to import Node's require module? Looking forward to your reply |
i actually tried it, but it fails. |
We have a device monitoring scenario where there are multiple fan devices on the main monitoring screen. Clicking on each fan will display a pop-up window showing the device profile of the current fan.
So when we click on the fan in the main interface, we bind an event and pop up a window. The data of the device file in the window is intended to be obtained through the API. However, we found that when connecting to the WEB API, we can only enter one URL and there is no place to set parameters. We would like to inquire about how to pass the parameters of the device changes as variables when binding the WEB API
The text was updated successfully, but these errors were encountered: