Skip to content
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

REST API Calls #104

Open
Aetrius opened this issue Nov 22, 2022 · 2 comments
Open

REST API Calls #104

Aetrius opened this issue Nov 22, 2022 · 2 comments

Comments

@Aetrius
Copy link

Aetrius commented Nov 22, 2022

Making REST API calls is a little difficult within the plugin. I'm noticing that the URL value doesn't seem to accept any local variables. i.e. if I set a hash variable = xyz when I go to configure the request section of the Ajax plugin, the Parameters (via javascript) section appears to not accept any format for variables.

Do you have any examples on how to add the variables set on a dashboard that pulls into the plugin?

Some examples I tried
{
hash: "$__hash"
}

{
hash: "$hash"
}

@Aetrius
Copy link
Author

Aetrius commented Nov 22, 2022

Basically I'm observing that the URL section does work, but I can't seem to apply variables from the dashboard.
In addition, the Parameters (via Javascript) does not seem to pull in the variables as well.

@Aetrius
Copy link
Author

Aetrius commented Nov 22, 2022

Sample Parameter:
-> This parameter work in the query URLs for Data links (urls) ${__data.fields.hash}
{
hash: '${__data.fields.hash}'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant