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

Creating SessionToken from existing string #478

Closed
MithilShah opened this issue Jul 12, 2018 · 3 comments
Closed

Creating SessionToken from existing string #478

MithilShah opened this issue Jul 12, 2018 · 3 comments

Comments

@MithilShah
Copy link

The PlacesApi.placeAutocomplete() method takes in a SessionToken. There is no way to create a SessionToken from an existing token. The class SessionToken only allows creating new tokens, but for the second request in the same autocomplete session, we need to send the sessionToken created during the first call. Can we modify the SessionToken inner class to add a constructor that takes in an existing token string?

@apjanke
Copy link
Contributor

apjanke commented Jul 17, 2018

This makes sense to me.

Maybe by exposing a UUID getUuid() method on SessionToken, and adding a SessionToken(UUID uuid) constructor variant? Would provide a bit of type safety.

@MithilShah
Copy link
Author

That would be perfect.

domesticmouse added a commit that referenced this issue Jul 18, 2018
@domesticmouse
Copy link
Contributor

Released with version 0.2.10.

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

3 participants