2016-11-29 10 views
0

メソッドuser.query(下記)を使用したArcanist APIのcall-conduit文は、ArcanistとPhabricatorの間で既に設定されているコンジットを介してPhabricatorからのユーザに関する多くの情報を正常に返しますが、住所。 何か提案がありますか? STDIN上のJSONパラメータを待っているArcanist API - ユーザー名を使用してユーザーのメールアドレスを返す方法ですか?

$ echo {\"usernames\": [\"jdoe\"]} | arc call-conduit user.query 

...

{"error":null,"errorMessage":null, 
    "response":[{ 
     "phid":"PHID-USER-4fltrivg3apuizheic7s", 
     "userName":"jdoe", 
     "realName":"John Doe", 
     "image":"http:\/\/xxxxxxxxx.global.ldap.wan\/res\/phabricator\/3eb28cd9\/rsrc\/image\/avatar.png", 
     "uri":"http:\/\/xxxxxxxxxx.global.ldap.wan\/p\/jdoe\/", 
     "roles":["verified","approved","activated"] 
    }] 
} 

答えて

0

は、ユーザーの電子メールアドレスを返します。何のコンジット方法はありません。

なしuser.whoamiが、戻り、それを:

{ 
    "phid": "PHID-USER-i3xveobs3ezomrdodufi", 
    "userName": "OCram", 
    "realName": "Marco Blessing", 
    "image": "https://p.phcdn.net/file/data/@secure/hcirbpnua7jzcsc54rtn/PHID-FILE-qxw7pwcn6ag6dtopf2bi/profile", 
    "uri": "https://secure.phabricator.com/p/OCram/", 
    "roles": [ 
    "verified", 
    "approved", 
    "activated" 
    ], 
    "primaryEmail": "[email protected]" 
} 

しかし、これはあなたが他のユーザーからの電子メールアドレスを取得するためには役立ちません。

関連する問題