POST http://apiNN.kokids.org/api/init NN = {01,02} INPUT type tInitInput struct { Bundle* string //app id i.e. "com.YovoGames.kidgame" Offset* string //client time offset (i.e. '+0200' ,'+0000', '-1200', '+0530'). see example TimeZoneUtc below ApkVer* int //bundle code or apk version int OSint* TOs //(enum see below) //Если есть Uid и token - логин с их помощью Uid int64 //if exist Token string //if uid>0 //если логина и токена нет, тогда берем системные GAID string GaidType int } type TOs int const ( OSUnknown TOs = iota - 1 OSAndroid OSHuawei OSIOs OSAmazon ) type TGAIDType int const ( GTUnknown TGAIDType = iota GTAppID GTPubID ) OUTPUT type tInitOutput struct { Uid int64 //user id in kokids service Token string //token for auth requests LastAPK int //previous login apk version (you can check whether was upgrade), 0 - if new client IsNewDevice int //1 - if new device Data map[string]any //extra data saved in db } * Example of new client request {{:init_new.png?600|}} * others requests {{:init.png?600|}} private string TimeZoneUtc() { string symbol = "+"; TimeSpan tm = TimeZoneInfo.Local.GetUtcOffset(DateTime.Now); if (tm.TotalMinutes < 0) symbol = "-"; return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " " + symbol + tm.ToString("hhmm"); }