使用方法user.query (以下)的Arcanist API调用-导管语句成功地通过Arcanist和Phabricator之间已经设置好的管道从Phabricator返回许多关于用户的信息,但是我对检索用户电子邮件地址很感兴趣。有什么建议吗?
$ echo {\"usernames\": [\"jdoe\"]} | arc call-conduit user.query等待stdin上的JSON参数..。
{"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"]
}]
}发布于 2016-12-05 12:19:14
没有返回用户电子邮件地址的管道方法。
只有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": "marco.blessing@googlemail.com"
}但这并不能帮助你从其他用户那里获得电子邮件地址。
https://stackoverflow.com/questions/40874828
复制相似问题