Skip to content

Commit

Permalink
Added correct documentation for proxy setting #744 (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinsight authored and sferik committed Nov 8, 2017
1 parent e9e41b0 commit 12d9d22
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,11 @@ If you'd like to connect via a proxy, a proxy can be configured by passing a
`Hash` to your configuration:

```ruby
proxy = {
host: '127.0.0.1',
port: 3328,
username: 'proxy_username',
password: 'proxy_password',
}
proxy: {
uri: Addressable::URI.parse("http://proxy_host:proxy_port"),
username: "proxy_username",
password: "proxy_password"
}

client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
Expand Down

0 comments on commit 12d9d22

Please sign in to comment.