0

到目前为止,我尝试过:

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.

但仍然使共享。我想这不是最好和可靠的方法,什么是正确的?

4

1 回答 1

0

不幸的是,编辑 shared_users 的能力实际上是一个很快就会修复的错误。没有通过 DroneDeploy API 共享的官方方式。

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

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

于 2017-07-21T17:34:05.040 回答