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

Take location data in user profile and see whether they're in the prohibited countries #74

Open
zackster opened this issue Jul 30, 2019 · 3 comments
Labels

Comments

@zackster
Copy link
Collaborator

If yes, refund any paid bets and cache username lookup result

@zackster
Copy link
Collaborator Author

  1. get location text from profile, then call https://nominatim.openstreetmap.org/search?q=Manhattan&format=json

IMPORTANT: include a user-agent (link to croupier source?) as per terms of OSM API

@zackster
Copy link
Collaborator Author

axios.get('https://keybase.io/_/api/1.0/user/lookup.json?usernames=dxb').then((res) => { const userLocation = res.data.them[0].profile.location; axios.get(https://nominatim.openstreetmap.org/search?q=${userLocation}&format=json`, { headers: {'User-Agent': 'https://github.com/codeforcash/croupier'}}).then((res2) => { console.log(res2.data[0]) })})`

@zackster zackster added the v3 label Jul 31, 2019
@zackster
Copy link
Collaborator Author

zackster commented Aug 8, 2019

Should apply to @here / any onBehalfOf

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

No branches or pull requests

1 participant