README.md in api_analytics-1.0.6 vs README.md in api_analytics-1.1.0
- old
+ new
@@ -29,22 +29,22 @@
module RailsMiddleware
class Application < Rails::Application
config.load_defaults 6.1
config.api_only = true
- config.middleware.use ::Analytics::Rails, <api_key> # Add middleware
+ config.middleware.use ::Analytics::Rails, <API-KEY> # Add middleware
end
end
```
#### Sinatra
```ruby
require 'sinatra'
require 'api_analytics'
-use Analytics::Sinatra, <api_key> # Add middleware
+use Analytics::Sinatra, <API-KEY> # Add middleware
before do
content_type 'application/json'
end
@@ -73,10 +73,10 @@
```py
import requests
headers = {
- "API-Key": <api_key>
+ "API-Key": <API-KEY>
}
response = requests.get("https://api-analytics-server.vercel.app/api/data", headers=headers)
print(response.json())
```