README.md in pager_duty-connection-2.0.1 vs README.md in pager_duty-connection-2.1.0
- old
+ new
@@ -51,9 +51,12 @@
pagerduty = PagerDuty::Connection.new(token)
# setup the connection with OAuth2 token
pagerduty = PagerDuty::Connection.new(token, token_type: :Bearer)
+# setup to use a custom domain
+pagerduty = PagerDuty::Connection.new(token, token_type: :Bearer, url: 'https://custom.domain.com')
+
# 4 main methods: `get`, `post`, `put`, and `delete`:
response = pagerduty.get('some/relative/path', params)
response = pagerduty.post('some/relative/path', params)
response = pagerduty.delete('some/relative/path', params)