Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgraham committed Feb 14, 2024
1 parent 45da965 commit 8a67a50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ end

### Reports
```ruby
# TODO
require 'site_impact'
SiteImpact.reports_base_url = 'http://sandbox.ecampaignstats.com/cp/index.php/report_api/?WSDL'
SiteImpact.reports_api_key = '[Your Reports Key]'

start_time = 90.days.ago
report = ::SiteImpact::Report.get_client_report(start_time)
puts "Your campaign has #{report.opens} opens, #{report.clicks} unique clicks and a broadcast date of #{report.broadcast_time}"
```

## Development
Expand Down

0 comments on commit 8a67a50

Please # to comment.