Skip to content

Commit 8a3799f

Browse files
Update ruby-http-client dependency
1 parent 31d4547 commit 8a3799f

27 files changed

Lines changed: 1277 additions & 933 deletions

File tree

CONTRIBUTING.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,18 @@ source ./sendgrid.env
9191

9292
See the [examples folder](https://github.com/sendgrid/sendgrid-ruby/tree/master/examples) to get started quickly.
9393

94-
To run the examples:
94+
To run the examples using the local version of this library from the root directory of this repo, please replace:
95+
96+
`require 'sendgrid-ruby'`
97+
98+
with:
99+
100+
`require_relative './lib/sendgrid-ruby.rb'`
101+
102+
Then run using:
95103

96104
```bash
97-
ruby examples/example.rb
105+
ruby example.rb
98106
```
99107

100108
<a name="understanding_the_codebase"></a>

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ mail = Mail.new(from, subject, to, content)
114114
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
115115
response = sg.client.mail._('send').beta.post(request_body: mail.to_json)
116116
puts response.status_code
117-
puts response.response_body
118-
puts response.response_headers
117+
puts response.body
118+
puts response.headers
119119
```
120120

121121
## General v3 Web API Usage
@@ -125,8 +125,8 @@ require 'sendgrid-ruby'
125125
sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
126126
response = sg.client.api_keys.get()
127127
puts response.status_code
128-
puts response.response_body
129-
puts response.response_headers
128+
puts response.body
129+
puts response.headers
130130
```
131131

132132
# Usage

0 commit comments

Comments
 (0)