googleapis / googleapis/google-api-python-client

[QUESTION] How to get the localized price OR the user's currency (or region) code?

Abierto
#2,698 0 comentarios 0 reacciones 1 asignado Reclamado por @gkevinzheng Ver en GitHub
Lenguaje dominante
Python
Estrellas
8.9k
Forks
2.6k
Merge medio
2 d 28 min
PR fusionados (30 d)
17

Descripción

I have the Google Play products saved to my database containing all the localized prices, which includes the region and currency code. But I'm struggling to find a way to get the price based on the user's currency or region. How can I achieve that?

From the user, I have only the auth code from [GamesSignInClient.requestServerSideAccess()](https://developers.google.com/android/reference/com/google/android/gms/games/GamesSignInClient#public-abstract-taskauthresponse-requestserversideaccess-string-serverclientid,-boolean-forcerefreshtoken,-listauthscope-scopes)

I was thinking about getting the user's currency or region code and query the database, or maybe a specific API call to get the product already localized, but I couldn't find anything.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.