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

UserId is not present in AogRequest #9

Closed
viniciusccarvalho opened this issue Feb 13, 2019 · 2 comments
Closed

UserId is not present in AogRequest #9

viniciusccarvalho opened this issue Feb 13, 2019 · 2 comments

Comments

@viniciusccarvalho
Copy link

Is there a reason why the userId property is never deserialized? I was hoping to use the userId from a payload to index data that may come from different users of the action.

Or maybe I'm missing something from actions on google and we should not use userIds at all

Regards

@viniciusccarvalho
Copy link
Author

@ghost
Copy link

ghost commented Feb 27, 2019

My understanding from the link you provided is that it's only not available if obtained from the AppRequest, which seems to be a separate object, however Javadoc (https://actions-on-google.github.io/actions-on-google-java/) specifically advertises it available via other means, [i.e. that is bypassing ActionRequest.getAppRequest().getUser().getId()] such as ActionRequest.getUser() for example. I still clearly see an inconsistency between the contents of the incoming request and what's available via the Java API, as detailed in https://stackoverflow.com/questions/54871395/how-to-obtain-a-user-id-and-oauth-access-token-in-dialogflow so it should be reopen IMHO.

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