README.md in pager_duty-connection-1.0.0 vs README.md in pager_duty-connection-1.1.0
- old
+ new
@@ -46,11 +46,11 @@
Working code is worth a thousand words. The basics:
```ruby
# setup the connection
-pagerduty = PagerDuty::Connection.new(token, version)
+pagerduty = PagerDuty::Connection.new(token)
# 4 main methods: `get`, `post`, `put`, and `delete`:
response = pagerduty.get('some/relative/path', params)
response = pagerduty.post('some/relative/path', params)
@@ -94,10 +94,10 @@
In general, you can get/put/post/delete a path, with some attributes. Use the [REST API Documentation](http://developer.pagerduty.com/documentation/rest) to get some ideas
If you are working in Rails, and using only a single PagerDuty account, you'll probably want an initializer:
```ruby
-$pagerduty = PagerDuty::Connection.new('your-subdomain', 'your-token')
+$pagerduty = PagerDuty::Connection.new('your-token')
```
And if you are using [dotenv](https://github.com/bkeepers/dotenv), you can use environment variables, and stash them in .env:
```ruby