disqus / python-phabricator

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

Can we instantiate the phabricator object to a different uri other than .arcrc #35

Closed msatish9 closed 8 years ago

msatish9 commented 8 years ago

Hi, Is it possible to use the phabricator to connect to a specific conduit uri, I have both the uri's of our phabricator instances in .arcrc but the api is always choosing the default one, it would be great if I could instantiate with the uri address? phab = phabricator(<uri?)?

Thanks Satish

BYK commented 8 years ago

You can pass the URL you want as the host argument: https://github.com/disqus/python-phabricator/blob/master/phabricator/__init__.py#L324

Would that solve your problem?

BYK commented 8 years ago

I mean not the URL, the host, as the name suggests.

msatish9 commented 8 years ago

Yes, that should work! Thanks for the prompt response @BYK , I will give it a try :)

BYK commented 8 years ago

No worries! Closing the ticket then. Feel free to reopen or filing a new one if you need more on this.