Skip to content
Browse files

Update OAuth example in README

  • Loading branch information...
1 parent 7d2b6d4 commit c01ceda66351d0f206fc5a4fa5a90746fcaa2596 @remiprev committed Apr 30, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.md
View
12 README.md
@@ -114,22 +114,26 @@ Using the `faraday_middleware` and `simple_oauth` gems, it’s fairly easy to us
In your Gemfile:
```ruby
- gem "her"
- gem "faraday_middleware"
- gem "simple_oauth"
+gem "her"
+gem "faraday_middleware"
+gem "simple_oauth"
```
In your Ruby code:
```ruby
+# Create an application on `https://dev.twitter.com/apps` to set these values
TWITTER_CREDENTIALS = {
:consumer_key => "",
:consumer_secret => "",
:token => "",
:token_secret => ""
}
-Her::API.setup :base_uri => "https://api.twitter.com/1/", :add_middleware => [FaradayMiddleware::OAuth => TWITTER_CREDENTIALS]
+Her::API.setup({
+ :base_uri => "https://api.twitter.com/1/",
+ :add_middleware => [FaradayMiddleware::OAuth => TWITTER_CREDENTIALS]
+})
class Tweet
include Her::Model

0 comments on commit c01ceda

Please sign in to comment.
Something went wrong with that request. Please try again.