到目前为止,我尝试过:
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.
但仍然使共享。我想这不是最好和可靠的方法,什么是正确的?