2017-06-28 3 views
0

はこれまでのところ、私はで実験:定義済みのユーザーと現在の計画をプログラムで共有する方法はありますか?

new DroneDeploy({version: 1}).then(function(dronedeploy){ 
    dronedeploy.Plans.getCurrentlyViewed().then(function(plan){ 
      plan.shared_users.push({username: "[email protected]"}); 
      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. 

をしかし、まだ共有しています。私はそれが最高で信頼できる方法ではないと思います。何が正しいものなのでしょうか?

答えて

0

残念ながら、shared_users is actually a bugを編集する機能はすぐに修正される予定です。 DroneDeploy APIを共有する公式な方法はありません。

あなたは機能として、あなたはここでの問題を開くことによって、そうすることができるように要求したい場合:https://github.com/dronedeploy/DroneDeploy-App-Market/issues

開示:私は

+0

ありがとうDroneDeployチームの開発者です@ramblinjan私は問題を開いた。 – Vadim

関連する問題