Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
yovokids_api_init [2022/10/25 12:52] serg |
yovokids_api_init [2022/10/28 06:59] (текущий) serg |
||
|---|---|---|---|
| Строка 9: | Строка 9: | ||
| type tInitInput struct { | type tInitInput struct { | ||
| - | Bundle string //app id i.e. "com.YovoGames.kidgame" | + | Bundle* string //app id i.e. "com.YovoGames.kidgame" |
| - | Offset string //client time offset (i.e. '+0200' ,'+0000', '-1200', '+0530'). see example TimeZoneUtc below | + | Offset* string //client time offset (i.e. '+0200' ,'+0000', '-1200', '+0530'). see example TimeZoneUtc below |
| - | ApkVer int //bundle code or apk version int | + | ApkVer* int //bundle code or apk version int |
| - | //fillin all possible login data. If you have gaid but not uid -> you'll receive uid, | + | OSint* TOs //(enum see below) |
| - | //if you have uid and loggin from ios -> fill in all data to join accounts in the db | + | //Если есть Uid и token - логин с их помощью |
| - | //login by kokids userid and token | + | |
| Uid int64 //if exist | Uid int64 //if exist | ||
| Token string //if uid>0 | Token string //if uid>0 | ||
| - | //other login method (android device id) | + | //если логина и токена нет, тогда берем системные |
| GAID string | GAID string | ||
| GaidType int | GaidType int | ||
| - | //login by ios IDFA | ||
| - | IDFA string | ||
| - | //other login methods will be here | ||
| } | } | ||
| + | type TOs int | ||
| + | const ( | ||
| + | OSUnknown TOs = iota - 1 | ||
| + | OSAndroid | ||
| + | OSHuawei | ||
| + | OSIOs | ||
| + | OSAmazon | ||
| + | ) | ||
| + | |||
| + | type TGAIDType int | ||
| + | const ( | ||
| + | GTUnknown TGAIDType = iota | ||
| + | GTAppID | ||
| + | GTPubID | ||
| + | ) | ||
| </code> | </code> | ||