简体   繁体   English

kaltura vpaas api,我使用哪个属性来修改共同编辑器或共同发布者

[英]kaltura vpaas api, which property do I use to modify the co-editor or co-publsher

 { "adminTags": "", "allowedPartnerIds": "", "allowedPartnerPackages": "", "city": "", "country": "", "createdAt": 0, "deletedAt": 0, "description": "", "email": "", "fullName": "", "id": "", "indexedPartnerDataInt": 0, "indexedPartnerDataString": "", "language": "aa", "lastLoginTime": 0, "objectType": "KalturaUser", "partnerData": "", "partnerId": 0, "screenName": "", "state": "", "status": 0, "statusUpdatedAt": 0, "storageSize": 0, "tags": "", "thumbnailUrl": "", "updatedAt": 0, "userMode": 0, "zip": "", "attendanceInfo": "", "dateOfBirth": 0, "firstName": "", "gender": 0, "isAccountOwner": true, "isAdmin": true, "lastName": "", "loginEnabled": true, "password": "", "registrationInfo": "", "roleIds": "", "roleNames": "", "type": 0 }

I am pretty new to using the kaltura api.我对使用 kaltura api 还很陌生。 I want to dynamically adjust some of the objects via the api.我想通过api动态调整一些对象。 For instance, the co-editor or co-partner, but I do not see in the object, which do I use or what actions in the documentations do you recommend?例如,共同编辑或合作伙伴,但我在对象中没有看到,我使用哪个或您推荐文档中的哪些操作?

If the property doesn't exist on the object (in your case the KalturaUser) then it is not updateable this object service (REST API).如果对象上不存在该属性(在您的情况下为 KalturaUser),则该对象服务(REST API)不可更新。

You can find the documentation here .您可以在此处找到文档。

I think you meant to update the co-editor / co-partner on the entry object - as each entry can have entitledUsersEdit / entitledUsersPublish fields which can contain list of user IDs.我认为您打算更新条目对象上的共同编辑者/共同合作伙伴 - 因为每个条目都可以有包含用户 ID 列表的授权用户编辑 / 授权用户发布字段。 You can see example here .您可以在此处查看示例。

So, after you have the user id from the object you have - you can use the baseEntry.update (from the link above) to set your user as co-editor/co-partner to the entry因此,从您拥有的对象中获得用户 ID 后,您可以使用 baseEntry.update(来自上面的链接)将您的用户设置为条目的共同编辑者/合作伙伴

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM