Инструменты пользователя

Инструменты сайта


yovokids_api_init

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
yovokids_api_init [2022/10/25 09:46]
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"​ + Bundlestring //app id i.e. "​com.YovoGames.kidgame"​ 
- Offset string //client time offset (i.e. '​+0200'​ ,'​+0000',​ '​-1200',​ '​+0530'​). see example TimeZoneUtc below + Offsetstring //client time offset (i.e. '​+0200'​ ,'​+0000',​ '​-1200',​ '​+0530'​). see example TimeZoneUtc below 
- Apk    ​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>​
  
Строка 37: Строка 48:
 } }
 </​code>​ </​code>​
 +  * Example of new client request
 +
 +{{:​init_new.png?​600|}}
 +  * others requests
 {{:​init.png?​600|}} {{:​init.png?​600|}}
 <​code>​ <​code>​
yovokids_api_init.1666691203.txt.gz · Последние изменения: 2022/10/25 09:46 — serg