Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set api host in constructor #15

Merged
merged 1 commit into from Jul 29, 2020
Merged

Ability to set api host in constructor #15

merged 1 commit into from Jul 29, 2020

Conversation

amorev
Copy link
Contributor

@amorev amorev commented May 12, 2018

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.

@Fab1en Fab1en merged commit f45218a into Fab1en:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants