первый запрос на сервер. XX Выбирается случайно среди 01-02 (в дальнейшем можно расширить список доменов) POST http://apiXX.yovokids.com/api/boardingstart
POST PARAMS
type tBoardingInput struct {
* Gaid string //GAID
* Bundle string //Bundle
* OS string //OS("android","ios","")
* APK int64 //APK версия
Make string //производитель девайса (samsung/huawei/apple)
Model string //модель девайса (T-150..)
Devicelang int // язык девайса Unity.SystemLanguage
}
OK RESPONSE ЕСЛИ GAID новый
type tBoardingOutput struct {
Queue []tQueue
}
type tQueue struct {
Id int
El []tQueueElement
}
type tQueueElement struct {
Name string
Value interface{}
}
EXAMPLE
{
"Queue": [
{
"Id": 1,
"El": [
{
"Name": "Button",
"Value": "continue"
},
{
"Name": "Frame_Text1",
"Value": "Frametext1"
},
{
"Name": "Frame_Text2",
"Value": "Frametext2"
},
{
"Name": "Frame_Text3",
"Value": "Frametext3"
},
{
"Name": "Frame_Text4",
"Value": "Frametext4"
},
{
"Name": "Frame_Text5",
"Value": "Frametext5"
},
{
"Name": "Header1",
"Value": "Header1"
},
{
"Name": "Header2",
"Value": "Header2"
},
{
"Name": "Header3",
"Value": "Header3"
},
{
"Name": "Image1",
"Value": "https://cdn01.yovokids.com/test.jpg"
}
]
},
{
"Id": 3,
"El": [
{
"Name": "Button1",
"Value": "cont"
},
{
"Name": "Header1",
"Value": "Header1"
},
{
"Name": "Header2",
"Value": "Header2"
},
{
"Name": "LangList",
"Value": [
"RU",
"EN"
]
}
]
},
{
"Id": 4,
"El": [
{
"Name": "AgeList",
"Value": [
"3",
"4",
"5",
"6+"
]
},
{
"Name": "Button1",
"Value": "go"
},
{
"Name": "Header1",
"Value": "Header1"
},
{
"Name": "Header2",
"Value": "Header2"
}
]
}
]
}
OK RESPONSE ЕСЛИ GAID уже есть
type tUser struct {
Aid int64
Token string
Gaid string
GoogleID string
HuaweiID string
AppleID string
Country string
City string
DeviceLang int
Registered_dt time.Time
Lastaccessed_dt time.Time
UserLang int
UserAge string
Likes []int
Temper []int
Level []int
Hobbies []int
Activities []int
PayPlan int
Payedtill_dt time.Time
}