disqus / python-phabricator

Python bindings for Phabricator
Apache License 2.0
159 stars 66 forks source link

Result of conduit methods returning only string #42

Closed reet- closed 7 years ago

reet- commented 7 years ago

Hi,

If I call e.g. file.upload, which returns nonempty guid:

phid = phab.file.upload(data_base64=content, name=name)

I get:

print phid <Result: u'PHID-FILE-xy'>

But what I want (without parsing the result string) is PHID-FILE-xy. Am I missing something?

Thanks!

tail commented 7 years ago

You can access it from phid.response.

reet- commented 7 years ago

@tail Works, thanks!

Closing this issue.