Permalink
Browse files

Clarified usage.

  • Loading branch information...
1 parent b35a95a commit 190280f2a4d4037f6aa89364ab4362738634a1b2 @keolo committed Aug 15, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 spec/mixpanel_client/mixpanel_client_spec.rb
View
@@ -17,6 +17,7 @@ Ruby access to the [Mixpanel](http://mixpanel.com/) web analytics tool.
client = Mixpanel::Client.new(config)
data = client.request do
+ # Available options
resource 'events/properties'
event '["test-event"]'
name 'hello'
@@ -26,7 +27,6 @@ Ruby access to the [Mixpanel](http://mixpanel.com/) web analytics tool.
interval 24
limit 5
bucket 'contents'
- # Below options only in segmentation events
from_date '2011-08-11'
to_date '2011-08-12'
on 'properties["product_id"]'
@@ -87,6 +87,7 @@
stub_request(:get, /^#{@uri}.*/).to_return(:body => '{"events": [], "type": "general"}')
@client.request do
+ # This is not a real request. It just lists all possible options.
resource 'events'
event '["test-event"]'
funnel 'down-the-rabbit-hole'
@@ -98,7 +99,6 @@
format 'csv'
bucket 'list'
values '["tiger", "blood"]'
- # Below options only in segmentation events
from_date '2011-08-11'
to_date '2011-08-12'
on 'properties["product_id"]'

0 comments on commit 190280f

Please sign in to comment.