Skip to content

Commit

Permalink
docs: Fix proxy setting sample (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklegr authored and sferik committed Jun 12, 2018
1 parent c9bf100 commit 91c037c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ If you'd like to connect via a proxy, a proxy can be configured by passing a
`Hash` to your configuration:

```ruby
proxy: {
uri: Addressable::URI.parse("http://proxy_host:proxy_port"),
username: "proxy_username",
password: "proxy_password"
}
proxy = {
host: "proxy.example.com",
port: 8080,
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 91c037c

Please sign in to comment.