订阅管理
- Java
- Kotlin
- Objective-C
- Swift
MarvelManager.getInstance().getNewSubs(countryCode,language,phrase,update,effectiveFilter,timezoneOffset,new AWHttpOriginalCallback(){
@Override
public void response(int code,String data){
}
});
MarvelManager.getInstance().getNewSubs(countryCode, language, phrase, update, effectiveFilter, timezoneOffset, object : AWHttpOriginalCallback {
override fun response(code: Int, data: String?) {
}
});
#import <AWMarvel/AWMarvel.h>
......
[[AWMarvelManager sharedInstance] getNewSubsWithLanguage:language withCountryCode:countryCode withPhrase:phrase withUpdate:update withEffectiveFilter:effectiveFilter withTimezoneOffset:timezoneOffset withCompletion:^(NSInteger result, NSString * _Nonnull errorMsg, NSDictionary * _Nullable data) {
}];
#import <AWMarvel/AWMarvel.h>
......
AWMarvelManager.sharedInstance().getNewSubs(withLanguage:language, withCountryCode: countryCode, withPhrase: phrase, withUpdate: update, withEffectiveFilter: effectiveFilter, withTimezoneOffset: timezoneOffset) { result, errorMsg, data in
}
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
app_id | 是 | 103 | 产品平台id |
lang | 是 | 语言 | |
country_code | 是 | 国家 | |
phrase | 否 | 预览密钥 | |
version | 是 | 客户端版本 | |
update | 否 | 数据的md5值 | |
effective_filter | 否 | 传1新时区逻辑,不传为旧逻辑 参照https://meitu.feishu.cn/docs/doccnYciNqUjP32KmNro05TXoth |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
code | number | 必须 | |||
data | object | 必须 | |||
├─ activity | object [] | 必须 | 活动(对用户下发多条) | item 类型: object | |
├─ name | string | 必须 | 名称 | ||
├─ countdown | object | 必须 | 倒计时 | ||
├─ start_time | number | 必须 | 开始时间(时间戳:秒) | ||
├─ end_time | number | 必须 | 结束时间(时间戳:秒) | ||
├─ countdown_color | string | 必须 | 背景色值 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ countdown_text_color | string | 必须 | 倒计时文字背景 | ||
├─ titleo_color | string | 必须 | 标题1字体颜色 | ||
├─ titleo_cont | string | 必须 | 标题1标题 | ||
├─ titlet_color | string | 必须 | 标题2字体颜色 | ||
├─ titlet_cont | string | 必须 | 标题2标题 | ||
├─ bac_pic | string | 必须 | 标题背景 | ||
├─ describe_copy | string | 必须 | 描述文案 | ||
├─ describe_color | string | 必须 | 描述字体颜色 | ||
├─ content | object [] | 必须 | 内容区 | item 类型: object | |
├─ cont_text | string | 必须 | 文本 | ||
├─ picture | string | 必须 | 图片 | ||
├─ class_info | string | 必须 | 分类 | ||
├─ year | object | 必须 | 订阅方案--年 | ||
├─ product_id | string | 必须 | 产品id | ||
├─ discount | number | 必须 | 折扣 | ||
├─ free_days | number | 必须 | 免费天数 | ||
├─ describe | string | 必须 | 折扣描述 | ||
├─ mark | string | 必须 | 折扣标记 | ||
├─ button_copy | string | 必须 | 按钮文案 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ badge_bg_color | string | 必须 | 左侧标签颜色(底色/文字/描边) | ||
├─ badge_text_color | string | 必须 | 左侧标签颜色(底色/文字/描边) | ||
├─ badge_border_inside_color | string | 必须 | 左侧标签颜色(底色/文字/描边) | ||
├─ save_bg_selected_color | string | 必须 | Save %选中底色(包括底色与描边) | ||
├─ save_text_selected_color | string | 必须 | Save %选中文案色值 | ||
├─ save_bg_default_color | string | 必须 | Save %未选中底色 | ||
├─ save_text_default_color | string | 必须 | Save %未选中文案色值 | ||
├─ month | object | 必须 | 订阅方案--月 | ||
├─ product_id | string | 必须 | 产品id | ||
├─ discount | number | 必须 | 折扣 | ||
├─ free_days | number | 必须 | 免费天数 | ||
├─ describe | string | 必须 | 折扣描述 | ||
├─ mark | string | 必须 | 折扣标记 | ||
├─ button_copy | string | 必须 | 按钮文案 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ week | object | 必须 | 订阅方案--周 | ||
├─ product_id | string | 必须 | 产品id | ||
├─ discount | number | 必须 | 折扣 | ||
├─ free_days | number | 必须 | 免费天数 | ||
├─ describe | string | 必须 | 折扣描述 | ||
├─ mark | string | 必须 | 折扣标记 | ||
├─ button_copy | string | 必须 | 按钮文案 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ lifetime | object | 必须 | 订阅方案--终生 | ||
├─ product_id | string | 必须 | 产品id | ||
├─ discount | number | 必须 | 折扣 | ||
├─ free_days | number | 必须 | 免费天数 | ||
├─ describe | string | 必须 | 折扣描述 | ||
├─ mark | string | 必须 | 折扣标记 | ||
├─ button_copy | string | 必须 | 按钮文案 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ quarter | object | 必须 | 订阅方案--季度 | ||
├─ product_id | string | 必须 | 产品id | ||
├─ discount | number | 必须 | 折扣 | ||
├─ free_days | number | 必须 | 免费天数 | ||
├─ describe | string | 必须 | 折扣描述 | ||
├─ mark | string | 必须 | 折扣标记 | ||
├─ button_copy | string | 必须 | 按钮文案 | ||
├─ status | number | 必须 | 状态1启用2禁用 | ||
├─ cont_color | string | 必须 | 内容区字体颜色 | ||
├─ img_background | string | 必须 | 图片背景 | ||
├─ video_background | string | 必须 | 视频背景 | ||
├─ home_ent | string | 必须 | 首页入口 | ||
├─ setting_entry | string | 必须 | 设置页入口 | ||
├─ banner | string | 必须 | banner入口 | ||
├─ sub_color | string | 必须 | 订阅方案字体颜色 | ||
├─ sub_blacolor | string | 必须 | 订阅方案背景颜色 | ||
├─ mtg_id | string | 必须 | ID | ||
├─ highlight | string | 必须 | 高亮选中 week:周 ,month:月,quarter:季,year:年,lifetime:终身(AB/AirVid) | ||
├─ shoot | string | 必须 | 拍摄入口 (partynow专用) | ||
├─ eff_status | number | 必须 | 是否开启生效时间,状态1启用2禁用 | ||
├─ end_ed | number | 必须 | 生效结束时间 | ||
├─ start_ed | string | 必须 | 生效开始时间 | ||
├─ sku_bg_default_color | string | 必须 | SKU默认颜色SKU BG Default | ||
├─ sku_bg_selected_color | string | 必须 | SKU选中颜色 SKU BG Selected | ||
├─ price_default_color | string | 必须 | 价格文案色值(默认/选中)Price Default | ||
├─ price_selected_color | string | 必须 | 价格文案色值(默认/选中)Price Selected | ||
├─ discount_bg_color | string | 必须 | 折扣底色 | ||
├─ discount_text_color | string | 必须 | 折扣文案 | ||
├─ background_color | string | 必须 | 背景色值 | ||
├─ terms_background_color | string | 必须 | 条款背景色 | ||
├─ foreground | string | 必须 | 前景 | ||
├─ promotion | object [] | 必须 | 促销(字段同活动一致)(仅对用户下发一条(“开始时间”最小的,次优 “创建时间”「创建时间最小的一条」),开启了生效时间和没开启生效时间的促销类型,开启了生效时间的优先于没开启的 )) | item 类型: object | |
├─ daily | object [] | 必须 | 日常(字段同活动一致) | item 类型: object | |
message | string | 必须 | |||
update | string | 必须 | 数据的md5值 |
{
"code": 0,
"data": {
"activity": [
{
"id": 20478,
"name": "TH-新尺寸-泼水节8折",
"countdown": {
"start_time": 1649923200,
"end_time": 1650182399,
"countdown_color": "#154E3B",
"status": 1,
"countdown_text_color": "#454321"
},
"titleo_color": "#454321",
"titleo_cont": "Happy Songkran",
"titlet_color": "#454321",
"titlet_cont": "",
"bac_pic": "https://gcs.beautyplus.com/2845b996950260271c47adf6e3437024.png",
"describe_copy": "",
"describe_color": "",
"content": [],
"year": {
"status": 1,
"product_id": "beautyplus.subs.month12.func00.lev00.campaign.songkranfestival.ver0",
"discount": 0.8,
"free_days": 7,
"describe": "",
"button_copy": "dddddd",
"badge_bg_color": "#454321",
"badge_text_color": "#454321",
"badge_border_inside_color": "#4543fdfdf321",
"save_bg_selected_color": "#454321",
"save_text_selected_color": "#454321",
"save_bg_default_color": "#454321",
"save_text_default_color": "#454321",
"mark": ""
},
"month": {
"status": 1,
"product_id": "beautyplus.subs.month1.func00.lev00.campaign.songkranfestival.ver0",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"week": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"lifetime": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"quarter": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"cont_color": "",
"img_background": "https://gcs.beautyplus.com/e0e54b954e9639507f0fd7c2f2145b8e.png",
"video_background": "",
"home_ent": "https://gcs.beautyplus.com/ab152a93e5f2d025782ba9e00b651997.png",
"setting_entry": "",
"banner": "",
"shoot": "",
"sub_color": "fdafadf",
"sub_blacolor": "fdafadf",
"start_ed": 0,
"end_ed": 0,
"eff_status": 2,
"mtg_id": "BP_SUB_00001517",
"highlight": "ddfdfdfsfadsfa",
"sku_bg_default_color": "#454321",
"sku_bg_selected_color": "#454321",
"price_default_color": "#454321",
"price_selected_color": "#454321",
"discount_bg_color": "#454321",
"discount_text_color": "#454321",
"background_color": "#dfdf11",
"terms_background_color": "#454321",
"foreground": "https://dfdfdf"
}
],
"daily": [],
"promotion": [
{
"id": 19411,
"name": "测试-Tier2国家",
"countdown": {
"start_time": 0,
"end_time": 0,
"countdown_color": "",
"status": 2,
"countdown_text_color": ""
},
"titleo_color": "",
"titleo_cont": "Happy Halloween",
"titlet_color": "",
"titlet_cont": "",
"bac_pic": "https://gcs.beautyplus.com/97b9926acea6b5969eaba2a50c850193.png",
"describe_copy": "",
"describe_color": "",
"content": [],
"year": {
"status": 1,
"product_id": "beautyplus.subs.month12.func00.lev00.campaign.halloween.ver4",
"discount": 0.8,
"free_days": 7,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"month": {
"status": 1,
"product_id": "beautyplus.subs.month1.func00.lev00.campaign.halloween.ver4",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"week": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"lifetime": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"quarter": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"cont_color": "",
"img_background": "https://gcs.beautyplus.com/6333a2d8b333f0f342ad0b50744b36ab.png",
"video_background": "",
"home_ent": "https://gcs.beautyplus.com/925731bcb5a34e764dc100960a72e254.jpeg",
"setting_entry": "",
"banner": "",
"shoot": "",
"sub_color": "",
"sub_blacolor": "",
"start_ed": 1666627200,
"end_ed": 1666843199,
"eff_status": 1,
"mtg_id": "BP_SUB_00000278",
"highlight": "",
"sku_bg_default_color": "",
"sku_bg_selected_color": "",
"price_default_color": "",
"price_selected_color": "",
"discount_bg_color": "",
"discount_text_color": "",
"background_color": "",
"terms_background_color": "",
"foreground": ""
}
]
},
"message": "success",
"update": "263aeefafe0b56ae9d77f1ffb77cf984"
}