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

GitHub Issue #153: Issues with using a custom API endpoint #189

Merged
merged 5 commits into from May 31, 2017

Conversation

ArturMoczulski
Copy link
Contributor

In 1.0.0 the behavior of base_api_url was changed and required additional item/ at the end. This was both not in sync with other SDKs and backwards incompatible.

This PR brings back the the behavior from 0.18.2 which doesn't require the item/ URL path.

Also, base_api_url is deprecated from now on in favor of endpoint which is in sync with how other SDKs work.

@@ -208,6 +208,38 @@ public function testSender()
$c->send($p, $this->token);
}

public function testEndpoint()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test that doesn't set the endpoint in the config just to ensure the default is propagating through properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rokob
Copy link
Contributor

rokob commented May 30, 2017

👍

@rokob rokob merged commit 5932c52 into rollbar:master May 31, 2017
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