googleapis / googleapis/google-api-python-client

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

オープン
#2,698 コメント 0 件 リアクション 0 件 担当者 1 名 @gkevinzheng が担当を希望しています GitHub で見る
主要言語
Python
スター
8.9k
フォーク
2.6k
平均マージ
2日 28分
マージ済み PR(30日)
17

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。