----
POST http://eventNN.kokids.org/api/events
**NN = {01,02}**
**POST PARAMS**
----
type tEventInput struct {
GAID string `json:"GAID"` //[REQUIRED] Gaid клиента - YovoExtra data
GaidType int8 `json:"GaidType"` //[REQUIRED] GaidType клиента - YovoExtra data
Bundle string `json:"Bundle"` //[REQUIRED] Bundle - clients packagename
BundleVer string `json:"BundleVer"`//[REQUIRED] apk/Bundle version
Uid string `json:"Uid"` //id клиента для доп идентификации (if none = 0)
OSint models.TOs `json:"OSint"` //[REQUIRED]
// os = ENUM(
// OSUnknown TOs = - 1
// OSAndroid
// OSHuawei
// OSIOs)
//
D string `json:"D"` //[REQUIRED] JSON []tEventData{} - массив утм меток со временем millisec
}
type tEventData struct {
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();
}
----
**RESPONSE**
StatusCode: 200
type tStandartOutput struct {
Result int //len of input.D
}
**EXAMPLE OK**
Status Code: 200
{
Result: 2
}
----
**EXAMPLE ERROR**
Status Code: 412
{
"error": "not enough data"
}