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

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


yovokids_events

Различия

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

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

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
yovokids_events [2022/09/22 07:28]
serg
yovokids_events [2022/10/19 07:34] (текущий)
serg
Строка 2: Строка 2:
 ---- ----
 <​code>​ <​code>​
-POST http://​eventNN.yovokids.com/api/event+POST http://​eventNN.kokids.org/api/events
 **NN = {01,02}** **NN = {01,02}**
 </​code>​ </​code>​
Строка 11: Строка 11:
 <​code>​ <​code>​
 type tEventInput struct { type tEventInput struct {
- Gaid     string ​    ​`json:"​G"​` ​ //​[REQUIRED] Gaid клиента - YovoExtra data + GAID      ​string ​    ​`json:"​GAID"​` ​    ​//​[REQUIRED] Gaid клиента - YovoExtra data 
- Gaidtype ​int8       ​`json:"​GT"` //​[REQUIRED] GaidType клиента - YovoExtra data + GaidType  ​int8       ​`json:"​GaidType"` //​[REQUIRED] GaidType клиента - YovoExtra data 
- Bundle ​  ​string ​    ​`json:"​B"​` ​ //​[REQUIRED] Bundle - clients packagename + Bundle ​   string ​    ​`json:"​Bundle"​` ​  ​//​[REQUIRED] Bundle - clients packagename 
-        BundleVer string ​   `json:"​A"​` ​ //​[REQUIRED] apk/Bundle version +        BundleVer string ​   `json:"​BundleVer"​`//​[REQUIRED] apk/Bundle version 
- Uid      ​int64      ​`json:"​U"​` ​ //id клиента (if none = 0) + Uid      ​string ​    `json:"​Uid"​` ​     //id клиента ​для доп идентификации ​(if none = 0) 
- OSint ​   models.TOs `json:"​O"​` ​ //​[REQUIRED] + OSint ​   models.TOs `json:"​OSint"​` ​   //​[REQUIRED]
  // os = ENUM(  // os = ENUM(
  // OSUnknown TOs = - 1  // OSUnknown TOs = - 1
Строка 23: Строка 23:
  // OSIOs)  // OSIOs)
  //  //
- Data string `json:"​D"​` //​[REQUIRED] JSON []tEventData{} - массив утм меток со временем millisec + string `json:"​D"​` //​[REQUIRED] JSON []tEventData{} - массив утм меток со временем millisec
- data []tEventData+
 } }
 type tEventData struct { type tEventData struct {
- EventID ​  string `json:"​E0"` // `utm0_utm1_utm2_utm3` - набор из 1-utm меток, разделенный _+ Utm0   string `json:"​U0"` // `utm0` - utm метка 
 + Utm1   ​string `json:"​U1"​` // `utm1` ​- utm метка 
 + Utm2   ​string `json:"​U2"​` // `utm2` - utm метка 
 + Utm3   ​string `json:"​U3"​` // `utm3` - utm метка
  TimeStamp int64  `json:"​T"​` ​ // время события в unixtime миллисекундах long epochMillis = Instant.now().toEpochMilli();​  TimeStamp int64  `json:"​T"​` ​ // время события в unixtime миллисекундах long epochMillis = Instant.now().toEpochMilli();​
 } }
Строка 39: Строка 41:
  
 type tStandartOutput struct { type tStandartOutput struct {
 +   ​Result int //len of input.D
 } }
  
Строка 46: Строка 49:
 <​code>​ <​code>​
 Status Code: 200 Status Code: 200
-{}+{ 
 +   ​Result:​ 2 
 +}
 </​code>​ </​code>​
  
-{{:​event_ok.png?​600|}}+
 ---- ----
  
yovokids_events.1663831689.txt.gz · Последние изменения: 2022/09/22 07:28 — serg