README.md in 3scale_client-2.5.0.pre1 vs README.md in 3scale_client-2.5.0
- old
+ new
@@ -104,11 +104,11 @@
# The key needs to be a symbol.
# A way to pass the metric is to add a parameter that will pass the name of the metric/method along
def authenticate
response = create_client.authrep(:app_id => params["app_id"],
:app_key => params["app_key"],
- :usage => { params[:metric].to_sym => 1 }
+ :usage => { params[:metric].to_sym => 1 })
if response.success?
return true
# All fine, the usage will be reported automatically. Proceeed.
else
# Something's wrong with this application.
@@ -258,7 +258,8 @@
## Rack Middleware
You can use our Rack middleware to automatically authenticate your Rack applications.
```ruby
+require '3scale/middleware'
use ThreeScale::Middleware, provider_key, :user_key # or :app_id
```