GitHub PullRequestReviewCommentEvent at 2014-03-04 23:49:12
Repository: mixpanel-ruby
Actor: qarren
Payload: {"comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/pulls/comments/10281504","id":10281504,"diff_hunk":"@@ -0,0 +1,40 @@\n+require 'mixpanel-ruby'\n+require 'faraday'\n+\n+# The Mixpanel library's default consumer will use the standard\n+# Net::HTTP library to communicate with servers, but you can extend\n+# your consumers to use other libraries. This example sends data using\n+# the Faraday library (so you'll need that library available to run it)\n+\n+class FaradayConsumer < Mixpanel::Consumer\n+  def request(endpoint, form_data)\n+    conn = ::Faraday.new(endpoint)\n+    response = conn.post(nil, form_data)\n+    [ response.status, response.body ]\n+  end\n+end\n+\n+if __FILE__ == $0\n+  # Replace this with the token from your project settings\n+  DEMO_TOKEN = '072f77c15bd04a5d0044d3d76ced7fea'","path":"demo/faraday_consumer.rb","position":19,"original_position":19,"commit_id":"fd11c8e4a492426290858c947e29a573c0cd5772","original_commit_id":"fd11c8e4a492426290858c947e29a573c0cd5772","user":{"login":"qarren","id":249565,"avatar_url":"https://gravatar.com/avatar/5366a90c39fc3474676f4a4b625ceeda?d=https%3A%2F%2Fidenticons.github.com%2Ff6f12c0eacb8f79b83b0827e6bfe6c8e.png&r=x","gravatar_id":"5366a90c39fc3474676f4a4b625ceeda","url":"https://api.github.com/users/qarren","html_url":"https://github.com/qarren","followers_url":"https://api.github.com/users/qarren/followers","following_url":"https://api.github.com/users/qarren/following{/other_user}","gists_url":"https://api.github.com/users/qarren/gists{/gist_id}","starred_url":"https://api.github.com/users/qarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qarren/subscriptions","organizations_url":"https://api.github.com/users/qarren/orgs","repos_url":"https://api.github.com/users/qarren/repos","events_url":"https://api.github.com/users/qarren/events{/privacy}","received_events_url":"https://api.github.com/users/qarren/received_events","type":"User","site_admin":false},"body":"maybe we should just make the string \"REPLACE_THIS...\" instead? who's token is this?","created_at":"2014-03-04T23:49:12Z","updated_at":"2014-03-04T23:49:12Z","html_url":"https://github.com/mixpanel/mixpanel-ruby/pull/27#discussion_r10281504","pull_request_url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-ruby/pulls/comments/10281504"},"html":{"href":"https://github.com/mixpanel/mixpanel-ruby/pull/27#discussion_r10281504"},"pull_request":{"href":"https://api.github.com/repos/mixpanel/mixpanel-ruby/pulls/27"}}}}