有没有办法以编程方式与定义的用户共享当前计划?

时间:2017-06-28 17:25:40

标签: dronedeploy

到目前为止,我试验过:

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.

但仍然进行分享。我想这不是最好和最可靠的方式,什么是正确的?

1 个答案:

答案 0 :(得分:0)

不幸的是,能够编辑即将修复的shared_users is actually a bug。没有正式的方法可以通过DroneDeploy API进行共享。

如果您想要将其作为一项功能请求,可以在此处打开一个问题:https://github.com/dronedeploy/DroneDeploy-App-Market/issues

披露:我是DroneDeploy团队的开发人员

相关问题