Correct way to conduit connect with json javascript request
Correct way to conduit connect with json javascript request
Event Timeline
joseneas updated the question from to Correct way to conduit connect with json javascript request.May 28 2016, 1:56 PM2016-05-28 13:56:08 (UTC+0)
Comment Actions
Why is ownerPHID in your query if you're trying to pull by authorPHID? Have you tried the conduit console to validate queries?
https://secure.phabricator.com/conduit/method/maniphest.query/
Comment Actions
I don't know anything about writing JavaScript or JSON, but my guess would be to just drop ownerPHID key from that array, and just pass the PHID?
Comment Actions
Look this:
curl https://secure.phabricator.com/api/user.query -d api.token=api-my_token -d emails=my_email@gmail.com
and result is:
"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"Argument 1 passed to PhabricatorPeopleQuery::withEmails() must be of the type array, string given, called in \/core\/lib\/phabricator\/src\/applications\/people\/conduit\/UserQueryConduitAPIMethod.php on line 53 and defined"}
What am I doing wrong?
Comment Actions
$ curl https://secure.phabricator.com/api/user.query \ -d api.token=api-token \ -d emails[0]=chad%40phacility.com