Fab1en / rocket-chat-rest-client

Rocket Chat REST API client in PHP
49 stars 38 forks source link

Ability to set api host in constructor #15

Closed amorev closed 4 years ago

amorev commented 6 years ago

I think it will be better to configure api host in the constructor for not using constants. After this PR the initialization of Client can be like this:

$client = new Client('https://demo.rocket.chat/api/v1/');

But it is still possible to use it as usual.