Added google androidpublisher/v3 api to verify google purchase tokens

This commit is contained in:
2022-11-25 22:42:21 +01:00
parent 6d80638cf8
commit 3a0c65a849
18 changed files with 608 additions and 163 deletions

View File

@@ -2,51 +2,19 @@
//TODO
- Return client on register
- Register with noclient=true
- return subscribtions in list-channels (?)
- migration script for existing data
- ack/read deliveries && return ack-count (? or not, how to query?)
- verify pro_token
- full-text-search: https://www.sqlite.org/fts5.html#contentless_tables
- dark mode toggle for html
- app-store link in HTML
- route to re-check all pro-token
- tests
- deploy
~~~~~~~~~~~~~~~~~~~~~~~~~~
https://developers.google.com/android-publisher/api-ref/purchases/products/get
https://console.cloud.google.com/apis/credentials?project=api-5982391131063970546-620227
https://pkg.go.dev/google.golang.org/api/androidpublisher/v2
https://github.com/googleapis/google-api-go-client
{
"web":
{
"client_id": "57770789756-7c29a3gif5346dkte194j1rb6u3mt5vs.apps.googleusercontent.com",
"project_id": "api-5982391131063970546-620227",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "wG22acxdYUfpi8RkSsjyu6Tw",
"redirect_uris":
[
"https://scn.blackforestbytes.com/index.php"
],
"javascript_origins":
[
"https://scn.blackforestbytes.com"
]
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~