到目前为止,我尝试了:
new DroneDeploy({version: 1}).then(function(dronedeploy){
dronedeploy.Plans.getCurrentlyViewed().then(function(plan){
plan.shared_users.push({username: "my.username@mail.kom"});
return plan;
).then(function(plan){
dronedeploy.Plans.update( plan.id,{shared_users: plan.shared_users});
});
);它会给出错误:
shared_users is not a whitelisted field to update on the plan.但还是要分享。我想这不是最好的和可靠的方式,什么才是合适的呢?
发布于 2017-07-22 01:34:05
不幸的是,编辑shared_users is actually a bug的功能很快就会被修复。没有通过DroneDeploy应用程序接口进行共享的官方方式。
如果您想要将其作为一个功能请求,可以通过在此处打开一个问题来实现:https://github.com/dronedeploy/DroneDeploy-App-Market/issues
披露:我是DroneDeploy团队的一名开发人员
https://stackoverflow.com/questions/44809024
复制相似问题