预发布密码
- Java
- Kotlin
- Objective-C
- Swift
MarvelManager.getInstance().getPreviewPwd(new AWHttpOriginalCallback(){
@Override
public void response(int code,String data){
}
});
MarvelManager.getInstance().getPreviewPwd(object : AWHttpOriginalCallback {
override fun response(code: Int, data: String?) {
}
});
#import <AWMarvel/AWMarvel.h>
......
[[AWMarvelManager sharedInstance] getPreviewPwdWithCompletion:^(NSInteger result, NSString * _Nonnull errorMsg, NSDictionary * _Nullable data) {
}];
#import <AWMarvel/AWMarvel.h>
......
AWMarvelManager.sharedInstance().getPreviewPwd(){ result, errorMsg, data in
}
返回数据
>名称 | >类型 | >是否必须 | >默认值 | >备注 | >其他信息 |
---|---|---|---|---|---|
> code | >number | >非必须 | > | > | > |
> data | >object | >非必须 | > | > | > |
>├─ preview_pwd | >string | >非必须 | > | > | > |
>├─ ttl | >number | >非必须 | > | >秒 | > |
> message | >string | >非必须 | > | > | > |
Example
{
"code": 0,
"data": {
"preview_pwd": "new:mrsecret:1:1661742886",
"ttl": 2496546
},
"message": "success",
"update": ""
}