推荐词
- Java
- Kotlin
- Objective-C
- Swift
Market.getInstance().getTrending(lanaguage,type,new Callback(){
@Override
public void onFailure(Call call,IOException e){
}
@Override
public void onResponse(Call call,Response response)throws IOException{
}
});
Market.getInstance().getTrending(language, type, object : Callback {
override fun onFailure(call: Call?, e: IOException?) {
}
override fun onResponse(call: Call?, response: Response?) {
}
})
[AWPurchaseKit getTrendingWithLanguage:language withType:type withCompletion:^(BOOL, NSDictionary * _Nullable, AWError * _Nullable) {
}];
AWPurchaseKit.getTrendingWithLanguage(language, withType: type) { success, data, error in
}
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
language | 是 | en | 语言简称,ja、en等 |
type | 否 | stikers | 运营自定义类型,如素材类型、搜索框位置等,不传表示查全部 |
返回数据
{
"code": 0,
"data": {
"list": [
{
"label": [
"Hot"
],
"type": "anim",
"name": "CAT"
},
{
"label": [
"New"
],
"type": "anim",
"name": "Dog"
}
]
},
"message": "success"
}