Здесь показаны различия между двумя версиями данной страницы.
| Следующая версия | Предыдущая версия | ||
|
install [2021/07/15 09:58] serg создано |
install [2021/12/23 12:35] (текущий) serg |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| - | yovokids/api/init | ||
| ---- | ---- | ||
| <code> | <code> | ||
| - | POST http://api.yovokids.com/api/init | + | POST http://install.yovokids.com/api/install |
| </code> | </code> | ||
| **POST PARAMS** | **POST PARAMS** | ||
| <code> | <code> | ||
| - | type tInitInput struct { | + | |
| - | GAID string `json:"GAID"` | + | type tInstallInput struct { |
| - | FBID string `json:"FBID"` | + | Installdate int64 `db:"installdate"` //calculated |
| - | YID string `json:"YID"` | + | Gaid string `db:"gaid"` //GAID |
| - | OS string `json:"OS"` | + | Bundle string `db:"bundle"` //Bundle |
| - | APK int `json:"APK"` | + | OS string `db:"os"` //OS("android","ios","") |
| - | Lang string `json:"Lang"` | + | Country string `db:"country"` //calculated |
| - | TZ string `json:"TZ"` | + | IP string `db:"ip"` //calculated |
| - | Bundle string `json:"Bundle"` | + | APK int64 `db:"apk"` //APK версия |
| - | Make string `json:"Make"` | + | Make string `db:"make"` //производитель девайса (samsung/huawei/apple) |
| - | Model string `json:"Model"` | + | Model string `db:"model"` //модель девайса (T-150..) |
| + | Devicelang int64 `db:"devicelang"` //язык девайса | ||
| + | Market string `db:"market"` //c какого маркета скачано приложение | ||
| + | UtmSource string `db:"utmsource"` //значение utm метки Source | ||
| + | UtmMedium string `db:"utmmedium"` //значение utm метки UtmMedium | ||
| + | UtmContent string `db:"utmcontent"` //значение utm метки UtmContent | ||
| + | UtmCampaign string `db:"utmcampaign"` //значение utm метки UtmCampaign | ||
| + | UtmTerm string `db:"utmterm"` //значение utm метки UtmTerm | ||
| + | UtmRaw string `db:"utmraw"` //значение utm метки в сыром виде | ||
| } | } | ||
| </code> | </code> | ||
| Строка 25: | Строка 32: | ||
| ---- | ---- | ||
| **OK RESPONSE** | **OK RESPONSE** | ||
| + | |||
| <code> | <code> | ||
| - | type tInitOutput struct { | + | StatusCode:200 |
| - | Aid int64 `json:"Aid"` | + | |
| - | Token string `json:"Token"` | + | |
| - | Assets map[string]TAsset | + | |
| - | Scenario []interface{} | + | |
| - | } | + | |
| - | type TAsset struct { | + | |
| - | Version int | + | |
| - | Path string | + | |
| - | } | + | |
| </code> | </code> | ||
| Строка 42: | Строка 40: | ||
| <code> | <code> | ||
| { | { | ||
| - | "Aid": 1, | + | "Result": 1 |
| - | "Token": "Test", | + | |
| - | "Assets": { | + | |
| - | "Images": { | + | |
| - | "Version": 1, | + | |
| - | "Path": "http://cdn01.yovokids.com/images/1.gzip" | + | |
| - | }, | + | |
| - | "Locale": { | + | |
| - | "Version": 1, | + | |
| - | "Path": "http://cdn01.yovokids.com/locale/1.gzip" | + | |
| - | } | + | |
| - | }, | + | |
| - | "Scenario": null | + | |
| } | } | ||
| </code> | </code> | ||