{"action":"created","comment":{"url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/comments/35613859","id":35613859,"diff_hunk":"@@ -106,9 +105,7 @@\n  */\n - (void)initializeApiKey:(NSString*) apiKey;\n - (void)initializeApiKey:(NSString*) apiKey userId:(NSString*) userId;\n-- (void)initializeApiKey:(NSString*) apiKey userId:(NSString*) userId startSession:(BOOL)startSession;\n \n-- (void)startSession;","path":"Amplitude/Amplitude.h","position":28,"original_position":28,"commit_id":"bc481cb3610d3cc9307d96a1187081e0da84b6ad","original_commit_id":"bc481cb3610d3cc9307d96a1187081e0da84b6ad","user":{"login":"curtisliu","id":3248421,"avatar_url":"https://avatars.githubusercontent.com/u/3248421?v=3","gravatar_id":"","url":"https://api.github.com/users/curtisliu","html_url":"https://github.com/curtisliu","followers_url":"https://api.github.com/users/curtisliu/followers","following_url":"https://api.github.com/users/curtisliu/following{/other_user}","gists_url":"https://api.github.com/users/curtisliu/gists{/gist_id}","starred_url":"https://api.github.com/users/curtisliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curtisliu/subscriptions","organizations_url":"https://api.github.com/users/curtisliu/orgs","repos_url":"https://api.github.com/users/curtisliu/repos","events_url":"https://api.github.com/users/curtisliu/events{/privacy}","received_events_url":"https://api.github.com/users/curtisliu/received_events","type":"User","site_admin":false},"body":"good point, done.","created_at":"2015-07-28T04:49:33Z","updated_at":"2015-07-28T04:49:33Z","html_url":"https://github.com/amplitude/Amplitude-iOS/pull/32#discussion_r35613859","pull_request_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/comments/35613859"},"html":{"href":"https://github.com/amplitude/Amplitude-iOS/pull/32#discussion_r35613859"},"pull_request":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32","id":40969156,"html_url":"https://github.com/amplitude/Amplitude-iOS/pull/32","diff_url":"https://github.com/amplitude/Amplitude-iOS/pull/32.diff","patch_url":"https://github.com/amplitude/Amplitude-iOS/pull/32.patch","issue_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/32","number":32,"state":"open","locked":false,"title":"Improve session logic","user":{"login":"curtisliu","id":3248421,"avatar_url":"https://avatars.githubusercontent.com/u/3248421?v=3","gravatar_id":"","url":"https://api.github.com/users/curtisliu","html_url":"https://github.com/curtisliu","followers_url":"https://api.github.com/users/curtisliu/followers","following_url":"https://api.github.com/users/curtisliu/following{/other_user}","gists_url":"https://api.github.com/users/curtisliu/gists{/gist_id}","starred_url":"https://api.github.com/users/curtisliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curtisliu/subscriptions","organizations_url":"https://api.github.com/users/curtisliu/orgs","repos_url":"https://api.github.com/users/curtisliu/repos","events_url":"https://api.github.com/users/curtisliu/events{/privacy}","received_events_url":"https://api.github.com/users/curtisliu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-28T02:09:32Z","updated_at":"2015-07-28T04:49:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1e09040373c3219bab31da59d18f7ab93bc498a","assignee":{"login":"djih","id":4776584,"avatar_url":"https://avatars.githubusercontent.com/u/4776584?v=3","gravatar_id":"","url":"https://api.github.com/users/djih","html_url":"https://github.com/djih","followers_url":"https://api.github.com/users/djih/followers","following_url":"https://api.github.com/users/djih/following{/other_user}","gists_url":"https://api.github.com/users/djih/gists{/gist_id}","starred_url":"https://api.github.com/users/djih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djih/subscriptions","organizations_url":"https://api.github.com/users/djih/orgs","repos_url":"https://api.github.com/users/djih/repos","events_url":"https://api.github.com/users/djih/events{/privacy}","received_events_url":"https://api.github.com/users/djih/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32/commits","review_comments_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32/comments","review_comment_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/32/comments","statuses_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/statuses/bc481cb3610d3cc9307d96a1187081e0da84b6ad","head":{"label":"amplitude:new-sessions","ref":"new-sessions","sha":"bc481cb3610d3cc9307d96a1187081e0da84b6ad","user":{"login":"amplitude","id":2291562,"avatar_url":"https://avatars.githubusercontent.com/u/2291562?v=3","gravatar_id":"","url":"https://api.github.com/users/amplitude","html_url":"https://github.com/amplitude","followers_url":"https://api.github.com/users/amplitude/followers","following_url":"https://api.github.com/users/amplitude/following{/other_user}","gists_url":"https://api.github.com/users/amplitude/gists{/gist_id}","starred_url":"https://api.github.com/users/amplitude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplitude/subscriptions","organizations_url":"https://api.github.com/users/amplitude/orgs","repos_url":"https://api.github.com/users/amplitude/repos","events_url":"https://api.github.com/users/amplitude/events{/privacy}","received_events_url":"https://api.github.com/users/amplitude/received_events","type":"Organization","site_admin":false},"repo":{"id":5702473,"name":"Amplitude-iOS","full_name":"amplitude/Amplitude-iOS","owner":{"login":"amplitude","id":2291562,"avatar_url":"https://avatars.githubusercontent.com/u/2291562?v=3","gravatar_id":"","url":"https://api.github.com/users/amplitude","html_url":"https://github.com/amplitude","followers_url":"https://api.github.com/users/amplitude/followers","following_url":"https://api.github.com/users/amplitude/following{/other_user}","gists_url":"https://api.github.com/users/amplitude/gists{/gist_id}","starred_url":"https://api.github.com/users/amplitude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplitude/subscriptions","organizations_url":"https://api.github.com/users/amplitude/orgs","repos_url":"https://api.github.com/users/amplitude/repos","events_url":"https://api.github.com/users/amplitude/events{/privacy}","received_events_url":"https://api.github.com/users/amplitude/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplitude/Amplitude-iOS","description":"","fork":false,"url":"https://api.github.com/repos/amplitude/Amplitude-iOS","forks_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/forks","keys_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/teams","hooks_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/hooks","issue_events_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/events","assignees_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/tags","blobs_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/languages","stargazers_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/stargazers","contributors_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/contributors","subscribers_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/subscribers","subscription_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/subscription","commits_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/merges","archive_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/downloads","issues_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/labels{/name}","releases_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/releases{/id}","created_at":"2012-09-06T13:24:14Z","updated_at":"2015-07-27T00:21:11Z","pushed_at":"2015-07-28T02:09:35Z","git_url":"git://github.com/amplitude/Amplitude-iOS.git","ssh_url":"git@github.com:amplitude/Amplitude-iOS.git","clone_url":"https://github.com/amplitude/Amplitude-iOS.git","svn_url":"https://github.com/amplitude/Amplitude-iOS","homepage":null,"size":902,"stargazers_count":37,"watchers_count":37,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":5,"forks":23,"open_issues":5,"watchers":37,"default_branch":"master"}},"base":{"label":"amplitude:master","ref":"master","sha":"e512e25fceb8ef6497bc1f66bac2abc3fed37c27","user":{"login":"amplitude","id":2291562,"avatar_url":"https://avatars.githubusercontent.com/u/2291562?v=3","gravatar_id":"","url":"https://api.github.com/users/amplitude","html_url":"https://github.com/amplitude","followers_url":"https://api.github.com/users/amplitude/followers","following_url":"https://api.github.com/users/amplitude/following{/other_user}","gists_url":"https://api.github.com/users/amplitude/gists{/gist_id}","starred_url":"https://api.github.com/users/amplitude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplitude/subscriptions","organizations_url":"https://api.github.com/users/amplitude/orgs","repos_url":"https://api.github.com/users/amplitude/repos","events_url":"https://api.github.com/users/amplitude/events{/privacy}","received_events_url":"https://api.github.com/users/amplitude/received_events","type":"Organization","site_admin":false},"repo":{"id":5702473,"name":"Amplitude-iOS","full_name":"amplitude/Amplitude-iOS","owner":{"login":"amplitude","id":2291562,"avatar_url":"https://avatars.githubusercontent.com/u/2291562?v=3","gravatar_id":"","url":"https://api.github.com/users/amplitude","html_url":"https://github.com/amplitude","followers_url":"https://api.github.com/users/amplitude/followers","following_url":"https://api.github.com/users/amplitude/following{/other_user}","gists_url":"https://api.github.com/users/amplitude/gists{/gist_id}","starred_url":"https://api.github.com/users/amplitude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplitude/subscriptions","organizations_url":"https://api.github.com/users/amplitude/orgs","repos_url":"https://api.github.com/users/amplitude/repos","events_url":"https://api.github.com/users/amplitude/events{/privacy}","received_events_url":"https://api.github.com/users/amplitude/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplitude/Amplitude-iOS","description":"","fork":false,"url":"https://api.github.com/repos/amplitude/Amplitude-iOS","forks_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/forks","keys_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/teams","hooks_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/hooks","issue_events_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/events","assignees_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/tags","blobs_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/languages","stargazers_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/stargazers","contributors_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/contributors","subscribers_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/subscribers","subscription_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/subscription","commits_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/merges","archive_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/downloads","issues_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/labels{/name}","releases_url":"https://api.github.com/repos/amplitude/Amplitude-iOS/releases{/id}","created_at":"2012-09-06T13:24:14Z","updated_at":"2015-07-27T00:21:11Z","pushed_at":"2015-07-28T02:09:35Z","git_url":"git://github.com/amplitude/Amplitude-iOS.git","ssh_url":"git@github.com:amplitude/Amplitude-iOS.git","clone_url":"https://github.com/amplitude/Amplitude-iOS.git","svn_url":"https://github.com/amplitude/Amplitude-iOS","homepage":null,"size":902,"stargazers_count":37,"watchers_count":37,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":5,"forks":23,"open_issues":5,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32"},"html":{"href":"https://github.com/amplitude/Amplitude-iOS/pull/32"},"issue":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/32"},"comments":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/amplitude/Amplitude-iOS/statuses/bc481cb3610d3cc9307d96a1187081e0da84b6ad"}}}}