API Queries - Liquid User Data #16521
Answered
by
Piedone
emrahtokalak
asked this question in
Q&A
-
Hello, I am running a sql query from my application's interface using the api/queries/{name} endpoint. The user is logged into my application. I want to access user information like "{% assign user = User | user_id | users_by_id %}" with liquid in my query. I think the user information in httpcontext is not loaded to liquid running here, what do you suggest I do for this? |
Beta Was this translation helpful? Give feedback.
Answered by
Piedone
Aug 5, 2024
Replies: 1 comment
-
Yes, because web APIs need to be authenticated with OpenID. You can take some inspiration from our API client project too. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
emrahtokalak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, because web APIs need to be authenticated with OpenID. You can take some inspiration from our API client project too.