{"action":"created","comment":{"url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/comments/32252712","id":32252712,"diff_hunk":"@@ -0,0 +1,39 @@\n+package main\n+\n+import (\n+\t\"os\"\n+\n+\t\"github.com/hudl/zendesk-exporter/config\"\n+\t\"github.com/hudl/zendesk-exporter/logging\"\n+\t\"github.com/hudl/zendesk-exporter/ticketwriter\"\n+\t\"github.com/hudl/zendesk-exporter/zendesk\"\n+\n+\t\"github.com/adamar/ZeGo/zego\"\n+\tgolog \"github.com/op/go-logging\"\n+)\n+\n+var log = golog.MustGetLogger(\"main\")\n+\n+func main() {\n+\tlogging.Configure()\n+\tlog.Info(\"Starting...\")\n+\n+\tstartTime := os.Args[1]","path":"main.go","position":21,"original_position":21,"commit_id":"f8b51c5e4ae0640f21ee9038b75131fe07e9097e","original_commit_id":"f8b51c5e4ae0640f21ee9038b75131fe07e9097e","user":{"login":"jcox92","id":844493,"avatar_url":"https://avatars.githubusercontent.com/u/844493?v=3","gravatar_id":"","url":"https://api.github.com/users/jcox92","html_url":"https://github.com/jcox92","followers_url":"https://api.github.com/users/jcox92/followers","following_url":"https://api.github.com/users/jcox92/following{/other_user}","gists_url":"https://api.github.com/users/jcox92/gists{/gist_id}","starred_url":"https://api.github.com/users/jcox92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcox92/subscriptions","organizations_url":"https://api.github.com/users/jcox92/orgs","repos_url":"https://api.github.com/users/jcox92/repos","events_url":"https://api.github.com/users/jcox92/events{/privacy}","received_events_url":"https://api.github.com/users/jcox92/received_events","type":"User","site_admin":false},"body":"Yea I was just being snarky. I'm going to check the arg length before reading.","created_at":"2015-06-11T18:31:36Z","updated_at":"2015-06-11T18:31:36Z","html_url":"https://github.com/hudl/zendesk-exporter/pull/1#discussion_r32252712","pull_request_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/comments/32252712"},"html":{"href":"https://github.com/hudl/zendesk-exporter/pull/1#discussion_r32252712"},"pull_request":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1","id":37379503,"html_url":"https://github.com/hudl/zendesk-exporter/pull/1","diff_url":"https://github.com/hudl/zendesk-exporter/pull/1.diff","patch_url":"https://github.com/hudl/zendesk-exporter/pull/1.patch","issue_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/1","number":1,"state":"open","locked":false,"title":"Added initial functionality for ticket exports","user":{"login":"jcox92","id":844493,"avatar_url":"https://avatars.githubusercontent.com/u/844493?v=3","gravatar_id":"","url":"https://api.github.com/users/jcox92","html_url":"https://github.com/jcox92","followers_url":"https://api.github.com/users/jcox92/followers","following_url":"https://api.github.com/users/jcox92/following{/other_user}","gists_url":"https://api.github.com/users/jcox92/gists{/gist_id}","starred_url":"https://api.github.com/users/jcox92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcox92/subscriptions","organizations_url":"https://api.github.com/users/jcox92/orgs","repos_url":"https://api.github.com/users/jcox92/repos","events_url":"https://api.github.com/users/jcox92/events{/privacy}","received_events_url":"https://api.github.com/users/jcox92/received_events","type":"User","site_admin":false},"body":"# The problem\r\n\r\nWe have about 4+ years of ticket data in Zendesk which we currently aren't leveraging. There's a lot of intelligence that we could gain from this data to make the lives of our support team and coaches easier. The first thing we are working on is automatically categorizing emails as they come in so the support folks don't have to do so manually.\r\n\r\n# The solution\r\nIn order to work with the data in a meaningful way, we are going to start continuously exporting it from Zendesk into our data warehouse which lives on S3. So I made a simple command line app that hits Zendesk's incremental API (https://developer.zendesk.com/rest_api/docs/core/incremental_export#tickets) at regular intervals. The app takes a single integer argument which is the startTime value (unix timestamp) to send to zendesk.\r\n","created_at":"2015-06-10T16:45:05Z","updated_at":"2015-06-11T18:31:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f34f19e516b42b9ab4aa2cb9a2a09d9950bb81f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/1/comments","statuses_url":"https://api.github.com/repos/hudl/zendesk-exporter/statuses/f8b51c5e4ae0640f21ee9038b75131fe07e9097e","head":{"label":"hudl:develop","ref":"develop","sha":"f8b51c5e4ae0640f21ee9038b75131fe07e9097e","user":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"repo":{"id":37208966,"name":"zendesk-exporter","full_name":"hudl/zendesk-exporter","owner":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hudl/zendesk-exporter","description":"A simple command line application that continuously exports data from Zendesk","fork":false,"url":"https://api.github.com/repos/hudl/zendesk-exporter","forks_url":"https://api.github.com/repos/hudl/zendesk-exporter/forks","keys_url":"https://api.github.com/repos/hudl/zendesk-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hudl/zendesk-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hudl/zendesk-exporter/teams","hooks_url":"https://api.github.com/repos/hudl/zendesk-exporter/hooks","issue_events_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/hudl/zendesk-exporter/events","assignees_url":"https://api.github.com/repos/hudl/zendesk-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/hudl/zendesk-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/hudl/zendesk-exporter/tags","blobs_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hudl/zendesk-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/hudl/zendesk-exporter/languages","stargazers_url":"https://api.github.com/repos/hudl/zendesk-exporter/stargazers","contributors_url":"https://api.github.com/repos/hudl/zendesk-exporter/contributors","subscribers_url":"https://api.github.com/repos/hudl/zendesk-exporter/subscribers","subscription_url":"https://api.github.com/repos/hudl/zendesk-exporter/subscription","commits_url":"https://api.github.com/repos/hudl/zendesk-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/hudl/zendesk-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/hudl/zendesk-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/hudl/zendesk-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hudl/zendesk-exporter/merges","archive_url":"https://api.github.com/repos/hudl/zendesk-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hudl/zendesk-exporter/downloads","issues_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/hudl/zendesk-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/hudl/zendesk-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hudl/zendesk-exporter/labels{/name}","releases_url":"https://api.github.com/repos/hudl/zendesk-exporter/releases{/id}","created_at":"2015-06-10T16:31:40Z","updated_at":"2015-06-10T16:33:01Z","pushed_at":"2015-06-10T17:47:34Z","git_url":"git://github.com/hudl/zendesk-exporter.git","ssh_url":"git@github.com:hudl/zendesk-exporter.git","clone_url":"https://github.com/hudl/zendesk-exporter.git","svn_url":"https://github.com/hudl/zendesk-exporter","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"hudl:master","ref":"master","sha":"b5ad20de184ff1c205ef365f982ef4b2d49ce223","user":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"repo":{"id":37208966,"name":"zendesk-exporter","full_name":"hudl/zendesk-exporter","owner":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hudl/zendesk-exporter","description":"A simple command line application that continuously exports data from Zendesk","fork":false,"url":"https://api.github.com/repos/hudl/zendesk-exporter","forks_url":"https://api.github.com/repos/hudl/zendesk-exporter/forks","keys_url":"https://api.github.com/repos/hudl/zendesk-exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hudl/zendesk-exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hudl/zendesk-exporter/teams","hooks_url":"https://api.github.com/repos/hudl/zendesk-exporter/hooks","issue_events_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/events{/number}","events_url":"https://api.github.com/repos/hudl/zendesk-exporter/events","assignees_url":"https://api.github.com/repos/hudl/zendesk-exporter/assignees{/user}","branches_url":"https://api.github.com/repos/hudl/zendesk-exporter/branches{/branch}","tags_url":"https://api.github.com/repos/hudl/zendesk-exporter/tags","blobs_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hudl/zendesk-exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/hudl/zendesk-exporter/languages","stargazers_url":"https://api.github.com/repos/hudl/zendesk-exporter/stargazers","contributors_url":"https://api.github.com/repos/hudl/zendesk-exporter/contributors","subscribers_url":"https://api.github.com/repos/hudl/zendesk-exporter/subscribers","subscription_url":"https://api.github.com/repos/hudl/zendesk-exporter/subscription","commits_url":"https://api.github.com/repos/hudl/zendesk-exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/hudl/zendesk-exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/hudl/zendesk-exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/hudl/zendesk-exporter/contents/{+path}","compare_url":"https://api.github.com/repos/hudl/zendesk-exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hudl/zendesk-exporter/merges","archive_url":"https://api.github.com/repos/hudl/zendesk-exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hudl/zendesk-exporter/downloads","issues_url":"https://api.github.com/repos/hudl/zendesk-exporter/issues{/number}","pulls_url":"https://api.github.com/repos/hudl/zendesk-exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/hudl/zendesk-exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/hudl/zendesk-exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hudl/zendesk-exporter/labels{/name}","releases_url":"https://api.github.com/repos/hudl/zendesk-exporter/releases{/id}","created_at":"2015-06-10T16:31:40Z","updated_at":"2015-06-10T16:33:01Z","pushed_at":"2015-06-10T17:47:34Z","git_url":"git://github.com/hudl/zendesk-exporter.git","ssh_url":"git@github.com:hudl/zendesk-exporter.git","clone_url":"https://github.com/hudl/zendesk-exporter.git","svn_url":"https://github.com/hudl/zendesk-exporter","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","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/hudl/zendesk-exporter/pulls/1"},"html":{"href":"https://github.com/hudl/zendesk-exporter/pull/1"},"issue":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/issues/1"},"comments":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hudl/zendesk-exporter/statuses/f8b51c5e4ae0640f21ee9038b75131fe07e9097e"}}}}