{"action":"created","comment":{"url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/comments/35613331","id":35613331,"diff_hunk":"@@ -5,15 +5,53 @@\n module Embulk\n   module Input\n     class MixpanelTest < Test::Unit::TestCase\n+      API_KEY = \"api_key\".freeze\n+      API_SECRET = \"api_secret\".freeze\n+      FROM_DATE = \"2015-02-22\".freeze\n+      TO_DATE = \"2015-03-02\".freeze\n+\n+      DURATIONS = [\n+        {from_date: FROM_DATE, to_date: \"2015-02-28\"}, # It has 7 days between 2015-02-02 and 2015-02-28","path":"test/embulk/input/test_mixpanel.rb","position":10,"original_position":10,"commit_id":"a68cd6bd7b697fd545e5eb4cf30ed2fd6145ac70","original_commit_id":"a68cd6bd7b697fd545e5eb4cf30ed2fd6145ac70","user":{"login":"uu59","id":499680,"avatar_url":"https://avatars.githubusercontent.com/u/499680?v=3","gravatar_id":"","url":"https://api.github.com/users/uu59","html_url":"https://github.com/uu59","followers_url":"https://api.github.com/users/uu59/followers","following_url":"https://api.github.com/users/uu59/following{/other_user}","gists_url":"https://api.github.com/users/uu59/gists{/gist_id}","starred_url":"https://api.github.com/users/uu59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uu59/subscriptions","organizations_url":"https://api.github.com/users/uu59/orgs","repos_url":"https://api.github.com/users/uu59/repos","events_url":"https://api.github.com/users/uu59/events{/privacy}","received_events_url":"https://api.github.com/users/uu59/received_events","type":"User","site_admin":false},"body":"s/02-02/02-22/ ?","created_at":"2015-07-28T04:29:47Z","updated_at":"2015-07-28T04:29:47Z","html_url":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7#discussion_r35613331","pull_request_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/comments/35613331"},"html":{"href":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7#discussion_r35613331"},"pull_request":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7","id":40970265,"html_url":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7","diff_url":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7.diff","patch_url":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7.patch","issue_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/7","number":7,"state":"open","locked":false,"title":"Slice days","user":{"login":"yoshihara","id":594134,"avatar_url":"https://avatars.githubusercontent.com/u/594134?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshihara","html_url":"https://github.com/yoshihara","followers_url":"https://api.github.com/users/yoshihara/followers","following_url":"https://api.github.com/users/yoshihara/following{/other_user}","gists_url":"https://api.github.com/users/yoshihara/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshihara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshihara/subscriptions","organizations_url":"https://api.github.com/users/yoshihara/orgs","repos_url":"https://api.github.com/users/yoshihara/repos","events_url":"https://api.github.com/users/yoshihara/events{/privacy}","received_events_url":"https://api.github.com/users/yoshihara/received_events","type":"User","site_admin":false},"body":"It takes long time to fetch data between `from_date` to `to_date` by one request. So I implemented this plugin fetches data between each 7 days. ","created_at":"2015-07-28T02:36:37Z","updated_at":"2015-07-28T04:29:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3d745e702d362d6c57d15e348d42a7c95bc028c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7/commits","review_comments_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7/comments","review_comment_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/7/comments","statuses_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/statuses/a68cd6bd7b697fd545e5eb4cf30ed2fd6145ac70","head":{"label":"treasure-data:slice_days","ref":"slice_days","sha":"a68cd6bd7b697fd545e5eb4cf30ed2fd6145ac70","user":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"repo":{"id":39185533,"name":"embulk-input-mixpanel","full_name":"treasure-data/embulk-input-mixpanel","owner":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treasure-data/embulk-input-mixpanel","description":"Embulk Input Plugin for Mixpanel","fork":false,"url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel","forks_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/forks","keys_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/teams","hooks_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/hooks","issue_events_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/events{/number}","events_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/events","assignees_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/assignees{/user}","branches_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/branches{/branch}","tags_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/tags","blobs_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/refs{/sha}","trees_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/statuses/{sha}","languages_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/languages","stargazers_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/stargazers","contributors_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/contributors","subscribers_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/subscribers","subscription_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/subscription","commits_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/commits{/sha}","git_commits_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/commits{/sha}","comments_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/comments{/number}","issue_comment_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/comments{/number}","contents_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/contents/{+path}","compare_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/merges","archive_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/downloads","issues_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues{/number}","pulls_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls{/number}","milestones_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/milestones{/number}","notifications_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/labels{/name}","releases_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/releases{/id}","created_at":"2015-07-16T08:25:00Z","updated_at":"2015-07-16T08:55:12Z","pushed_at":"2015-07-28T04:28:46Z","git_url":"git://github.com/treasure-data/embulk-input-mixpanel.git","ssh_url":"git@github.com:treasure-data/embulk-input-mixpanel.git","clone_url":"https://github.com/treasure-data/embulk-input-mixpanel.git","svn_url":"https://github.com/treasure-data/embulk-input-mixpanel","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"treasure-data:master","ref":"master","sha":"1ca012193e794ab870601885a57109ed978b0204","user":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"repo":{"id":39185533,"name":"embulk-input-mixpanel","full_name":"treasure-data/embulk-input-mixpanel","owner":{"login":"treasure-data","id":747746,"avatar_url":"https://avatars.githubusercontent.com/u/747746?v=3","gravatar_id":"","url":"https://api.github.com/users/treasure-data","html_url":"https://github.com/treasure-data","followers_url":"https://api.github.com/users/treasure-data/followers","following_url":"https://api.github.com/users/treasure-data/following{/other_user}","gists_url":"https://api.github.com/users/treasure-data/gists{/gist_id}","starred_url":"https://api.github.com/users/treasure-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treasure-data/subscriptions","organizations_url":"https://api.github.com/users/treasure-data/orgs","repos_url":"https://api.github.com/users/treasure-data/repos","events_url":"https://api.github.com/users/treasure-data/events{/privacy}","received_events_url":"https://api.github.com/users/treasure-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treasure-data/embulk-input-mixpanel","description":"Embulk Input Plugin for Mixpanel","fork":false,"url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel","forks_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/forks","keys_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/teams","hooks_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/hooks","issue_events_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/events{/number}","events_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/events","assignees_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/assignees{/user}","branches_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/branches{/branch}","tags_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/tags","blobs_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/refs{/sha}","trees_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/statuses/{sha}","languages_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/languages","stargazers_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/stargazers","contributors_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/contributors","subscribers_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/subscribers","subscription_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/subscription","commits_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/commits{/sha}","git_commits_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/git/commits{/sha}","comments_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/comments{/number}","issue_comment_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/comments{/number}","contents_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/contents/{+path}","compare_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/merges","archive_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/downloads","issues_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues{/number}","pulls_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls{/number}","milestones_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/milestones{/number}","notifications_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/labels{/name}","releases_url":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/releases{/id}","created_at":"2015-07-16T08:25:00Z","updated_at":"2015-07-16T08:55:12Z","pushed_at":"2015-07-28T04:28:46Z","git_url":"git://github.com/treasure-data/embulk-input-mixpanel.git","ssh_url":"git@github.com:treasure-data/embulk-input-mixpanel.git","clone_url":"https://github.com/treasure-data/embulk-input-mixpanel.git","svn_url":"https://github.com/treasure-data/embulk-input-mixpanel","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7"},"html":{"href":"https://github.com/treasure-data/embulk-input-mixpanel/pull/7"},"issue":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/7"},"comments":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/treasure-data/embulk-input-mixpanel/statuses/a68cd6bd7b697fd545e5eb4cf30ed2fd6145ac70"}}}}