{"action":"created","comment":{"url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/comments/112809149","pull_request_review_id":34156770,"id":112809149,"diff_hunk":"@@ -27,91 +53,251 @@ get_mailchimp_data <- function(endpoint, date_since = NULL){\n     \"templates\" = \"since_created_at\"\n   )\n \n-  access_api <- function(query, path){\n-    query$offset <- 0\n-    ret <- list()\n-    while(TRUE){\n-      url <- paste0(\"https://\", area,\".api.mailchimp.com/3.0/\", path)\n+  base_query <- list(count = 1000)","path":"R/get_mailchimp_data.R","position":null,"original_position":65,"commit_id":"a407c2c10c21737777bcd500c3ca201a08fffea9","original_commit_id":"4b6dfb896c0ad9939ebcb0a040629c4895a86cbf","user":{"login":"double-y","id":6638312,"avatar_url":"https://avatars0.githubusercontent.com/u/6638312?v=3","gravatar_id":"","url":"https://api.github.com/users/double-y","html_url":"https://github.com/double-y","followers_url":"https://api.github.com/users/double-y/followers","following_url":"https://api.github.com/users/double-y/following{/other_user}","gists_url":"https://api.github.com/users/double-y/gists{/gist_id}","starred_url":"https://api.github.com/users/double-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/double-y/subscriptions","organizations_url":"https://api.github.com/users/double-y/orgs","repos_url":"https://api.github.com/users/double-y/repos","events_url":"https://api.github.com/users/double-y/events{/privacy}","received_events_url":"https://api.github.com/users/double-y/received_events","type":"User","site_admin":false},"body":"added a comment","created_at":"2017-04-22T12:48:33Z","updated_at":"2017-04-22T12:48:33Z","html_url":"https://github.com/exploratory-io/exploratory_func/pull/261#discussion_r112809149","pull_request_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/comments/112809149"},"html":{"href":"https://github.com/exploratory-io/exploratory_func/pull/261#discussion_r112809149"},"pull_request":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261","id":116534640,"html_url":"https://github.com/exploratory-io/exploratory_func/pull/261","diff_url":"https://github.com/exploratory-io/exploratory_func/pull/261.diff","patch_url":"https://github.com/exploratory-io/exploratory_func/pull/261.patch","issue_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/261","number":261,"state":"open","locked":false,"title":"update mailchimp data source function and stripe data source function","user":{"login":"double-y","id":6638312,"avatar_url":"https://avatars0.githubusercontent.com/u/6638312?v=3","gravatar_id":"","url":"https://api.github.com/users/double-y","html_url":"https://github.com/double-y","followers_url":"https://api.github.com/users/double-y/followers","following_url":"https://api.github.com/users/double-y/following{/other_user}","gists_url":"https://api.github.com/users/double-y/gists{/gist_id}","starred_url":"https://api.github.com/users/double-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/double-y/subscriptions","organizations_url":"https://api.github.com/users/double-y/orgs","repos_url":"https://api.github.com/users/double-y/repos","events_url":"https://api.github.com/users/double-y/events{/privacy}","received_events_url":"https://api.github.com/users/double-y/received_events","type":"User","site_admin":false},"body":"### Description\r\nupdate mailchimp api data source function\r\n\r\n### Checklist\r\n\r\nMake sure you have performed following items before submitting this pull request.\r\nIf not, please describe the reason.  \r\n\r\n- [ ] Add test cases for this fix/enhancement\r\n- [ ] Pass devtools::check()\r\n- [ ] Pass devtools::test()\r\n- [ ] Test installing from github\r\n- [ ] Tested with Exploratory\r\n","created_at":"2017-04-19T12:21:01Z","updated_at":"2017-04-22T12:48:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e74fa0ad12861a3a81851c53224f83e73ff7afe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261/commits","review_comments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261/comments","review_comment_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/261/comments","statuses_url":"https://api.github.com/repos/exploratory-io/exploratory_func/statuses/a407c2c10c21737777bcd500c3ca201a08fffea9","head":{"label":"exploratory-io:yy_update_mailchimp","ref":"yy_update_mailchimp","sha":"a407c2c10c21737777bcd500c3ca201a08fffea9","user":{"login":"exploratory-io","id":17174641,"avatar_url":"https://avatars2.githubusercontent.com/u/17174641?v=3","gravatar_id":"","url":"https://api.github.com/users/exploratory-io","html_url":"https://github.com/exploratory-io","followers_url":"https://api.github.com/users/exploratory-io/followers","following_url":"https://api.github.com/users/exploratory-io/following{/other_user}","gists_url":"https://api.github.com/users/exploratory-io/gists{/gist_id}","starred_url":"https://api.github.com/users/exploratory-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploratory-io/subscriptions","organizations_url":"https://api.github.com/users/exploratory-io/orgs","repos_url":"https://api.github.com/users/exploratory-io/repos","events_url":"https://api.github.com/users/exploratory-io/events{/privacy}","received_events_url":"https://api.github.com/users/exploratory-io/received_events","type":"Organization","site_admin":false},"repo":{"id":58769613,"name":"exploratory_func","full_name":"exploratory-io/exploratory_func","owner":{"login":"exploratory-io","id":17174641,"avatar_url":"https://avatars2.githubusercontent.com/u/17174641?v=3","gravatar_id":"","url":"https://api.github.com/users/exploratory-io","html_url":"https://github.com/exploratory-io","followers_url":"https://api.github.com/users/exploratory-io/followers","following_url":"https://api.github.com/users/exploratory-io/following{/other_user}","gists_url":"https://api.github.com/users/exploratory-io/gists{/gist_id}","starred_url":"https://api.github.com/users/exploratory-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploratory-io/subscriptions","organizations_url":"https://api.github.com/users/exploratory-io/orgs","repos_url":"https://api.github.com/users/exploratory-io/repos","events_url":"https://api.github.com/users/exploratory-io/events{/privacy}","received_events_url":"https://api.github.com/users/exploratory-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exploratory-io/exploratory_func","description":"R functions for Exploratory","fork":false,"url":"https://api.github.com/repos/exploratory-io/exploratory_func","forks_url":"https://api.github.com/repos/exploratory-io/exploratory_func/forks","keys_url":"https://api.github.com/repos/exploratory-io/exploratory_func/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exploratory-io/exploratory_func/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exploratory-io/exploratory_func/teams","hooks_url":"https://api.github.com/repos/exploratory-io/exploratory_func/hooks","issue_events_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/events{/number}","events_url":"https://api.github.com/repos/exploratory-io/exploratory_func/events","assignees_url":"https://api.github.com/repos/exploratory-io/exploratory_func/assignees{/user}","branches_url":"https://api.github.com/repos/exploratory-io/exploratory_func/branches{/branch}","tags_url":"https://api.github.com/repos/exploratory-io/exploratory_func/tags","blobs_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/refs{/sha}","trees_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exploratory-io/exploratory_func/statuses/{sha}","languages_url":"https://api.github.com/repos/exploratory-io/exploratory_func/languages","stargazers_url":"https://api.github.com/repos/exploratory-io/exploratory_func/stargazers","contributors_url":"https://api.github.com/repos/exploratory-io/exploratory_func/contributors","subscribers_url":"https://api.github.com/repos/exploratory-io/exploratory_func/subscribers","subscription_url":"https://api.github.com/repos/exploratory-io/exploratory_func/subscription","commits_url":"https://api.github.com/repos/exploratory-io/exploratory_func/commits{/sha}","git_commits_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/commits{/sha}","comments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/comments{/number}","issue_comment_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/comments{/number}","contents_url":"https://api.github.com/repos/exploratory-io/exploratory_func/contents/{+path}","compare_url":"https://api.github.com/repos/exploratory-io/exploratory_func/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exploratory-io/exploratory_func/merges","archive_url":"https://api.github.com/repos/exploratory-io/exploratory_func/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exploratory-io/exploratory_func/downloads","issues_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues{/number}","pulls_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls{/number}","milestones_url":"https://api.github.com/repos/exploratory-io/exploratory_func/milestones{/number}","notifications_url":"https://api.github.com/repos/exploratory-io/exploratory_func/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exploratory-io/exploratory_func/labels{/name}","releases_url":"https://api.github.com/repos/exploratory-io/exploratory_func/releases{/id}","deployments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/deployments","created_at":"2016-05-13T20:14:49Z","updated_at":"2017-04-21T17:19:27Z","pushed_at":"2017-04-22T12:47:27Z","git_url":"git://github.com/exploratory-io/exploratory_func.git","ssh_url":"git@github.com:exploratory-io/exploratory_func.git","clone_url":"https://github.com/exploratory-io/exploratory_func.git","svn_url":"https://github.com/exploratory-io/exploratory_func","homepage":null,"size":1423,"stargazers_count":17,"watchers_count":17,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":17,"default_branch":"master"}},"base":{"label":"exploratory-io:master","ref":"master","sha":"19a927572f522bbce257fe600d9e4d9020278482","user":{"login":"exploratory-io","id":17174641,"avatar_url":"https://avatars2.githubusercontent.com/u/17174641?v=3","gravatar_id":"","url":"https://api.github.com/users/exploratory-io","html_url":"https://github.com/exploratory-io","followers_url":"https://api.github.com/users/exploratory-io/followers","following_url":"https://api.github.com/users/exploratory-io/following{/other_user}","gists_url":"https://api.github.com/users/exploratory-io/gists{/gist_id}","starred_url":"https://api.github.com/users/exploratory-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploratory-io/subscriptions","organizations_url":"https://api.github.com/users/exploratory-io/orgs","repos_url":"https://api.github.com/users/exploratory-io/repos","events_url":"https://api.github.com/users/exploratory-io/events{/privacy}","received_events_url":"https://api.github.com/users/exploratory-io/received_events","type":"Organization","site_admin":false},"repo":{"id":58769613,"name":"exploratory_func","full_name":"exploratory-io/exploratory_func","owner":{"login":"exploratory-io","id":17174641,"avatar_url":"https://avatars2.githubusercontent.com/u/17174641?v=3","gravatar_id":"","url":"https://api.github.com/users/exploratory-io","html_url":"https://github.com/exploratory-io","followers_url":"https://api.github.com/users/exploratory-io/followers","following_url":"https://api.github.com/users/exploratory-io/following{/other_user}","gists_url":"https://api.github.com/users/exploratory-io/gists{/gist_id}","starred_url":"https://api.github.com/users/exploratory-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploratory-io/subscriptions","organizations_url":"https://api.github.com/users/exploratory-io/orgs","repos_url":"https://api.github.com/users/exploratory-io/repos","events_url":"https://api.github.com/users/exploratory-io/events{/privacy}","received_events_url":"https://api.github.com/users/exploratory-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exploratory-io/exploratory_func","description":"R functions for Exploratory","fork":false,"url":"https://api.github.com/repos/exploratory-io/exploratory_func","forks_url":"https://api.github.com/repos/exploratory-io/exploratory_func/forks","keys_url":"https://api.github.com/repos/exploratory-io/exploratory_func/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exploratory-io/exploratory_func/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exploratory-io/exploratory_func/teams","hooks_url":"https://api.github.com/repos/exploratory-io/exploratory_func/hooks","issue_events_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/events{/number}","events_url":"https://api.github.com/repos/exploratory-io/exploratory_func/events","assignees_url":"https://api.github.com/repos/exploratory-io/exploratory_func/assignees{/user}","branches_url":"https://api.github.com/repos/exploratory-io/exploratory_func/branches{/branch}","tags_url":"https://api.github.com/repos/exploratory-io/exploratory_func/tags","blobs_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/refs{/sha}","trees_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exploratory-io/exploratory_func/statuses/{sha}","languages_url":"https://api.github.com/repos/exploratory-io/exploratory_func/languages","stargazers_url":"https://api.github.com/repos/exploratory-io/exploratory_func/stargazers","contributors_url":"https://api.github.com/repos/exploratory-io/exploratory_func/contributors","subscribers_url":"https://api.github.com/repos/exploratory-io/exploratory_func/subscribers","subscription_url":"https://api.github.com/repos/exploratory-io/exploratory_func/subscription","commits_url":"https://api.github.com/repos/exploratory-io/exploratory_func/commits{/sha}","git_commits_url":"https://api.github.com/repos/exploratory-io/exploratory_func/git/commits{/sha}","comments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/comments{/number}","issue_comment_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/comments{/number}","contents_url":"https://api.github.com/repos/exploratory-io/exploratory_func/contents/{+path}","compare_url":"https://api.github.com/repos/exploratory-io/exploratory_func/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exploratory-io/exploratory_func/merges","archive_url":"https://api.github.com/repos/exploratory-io/exploratory_func/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exploratory-io/exploratory_func/downloads","issues_url":"https://api.github.com/repos/exploratory-io/exploratory_func/issues{/number}","pulls_url":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls{/number}","milestones_url":"https://api.github.com/repos/exploratory-io/exploratory_func/milestones{/number}","notifications_url":"https://api.github.com/repos/exploratory-io/exploratory_func/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exploratory-io/exploratory_func/labels{/name}","releases_url":"https://api.github.com/repos/exploratory-io/exploratory_func/releases{/id}","deployments_url":"https://api.github.com/repos/exploratory-io/exploratory_func/deployments","created_at":"2016-05-13T20:14:49Z","updated_at":"2017-04-21T17:19:27Z","pushed_at":"2017-04-22T12:47:27Z","git_url":"git://github.com/exploratory-io/exploratory_func.git","ssh_url":"git@github.com:exploratory-io/exploratory_func.git","clone_url":"https://github.com/exploratory-io/exploratory_func.git","svn_url":"https://github.com/exploratory-io/exploratory_func","homepage":null,"size":1423,"stargazers_count":17,"watchers_count":17,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261"},"html":{"href":"https://github.com/exploratory-io/exploratory_func/pull/261"},"issue":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/261"},"comments":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/exploratory-io/exploratory_func/statuses/a407c2c10c21737777bcd500c3ca201a08fffea9"}}}}
{"actor":{"display_login":"double-y"}}