接口方法
Index >
MerchantPermissionApi >
insertByAccountAndResourceAndRoleKey
说明: 添加商家临时授权
InterfaceName: MerchantPermissionApi
MethodName: insertByAccountAndResourceAndRoleKey
ReturnType: Boolean
parameters :
|
merchantId
|
参数0 |
可选 |
Integer |
|
|
accountType
|
参数1 |
可选 |
String |
|
|
accountId
|
参数2 |
可选 |
Integer |
|
|
expireAt
|
参数3 |
可选 |
Timestamp |
|
JavaScript Sdk 调用示例
下载JavaScript Sdk
sdk.MerchantPermissionApi().insertByAccountAndResourceAndRoleKey({
merchantId:"" ,
accountType:"" ,
accountId:"" ,
expireAt:{} // Timestamp 对象
}).then(function(result) {
alert("success");
}
);