README.md in pager_duty-connection-1.1.0 vs README.md in pager_duty-connection-1.2.0
- old
+ new
@@ -45,11 +45,14 @@
Working code is worth a thousand words. The basics:
```ruby
-# setup the connection
+# setup the connection with API token
pagerduty = PagerDuty::Connection.new(token)
+
+# setup the connection with OAuth2 token
+pagerduty = PagerDuty::Connection.new(token, :Bearer)
# 4 main methods: `get`, `post`, `put`, and `delete`:
response = pagerduty.get('some/relative/path', params)
response = pagerduty.post('some/relative/path', params)