{"action":"created","comment":{"url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/comments/29446187","id":29446187,"diff_hunk":"@@ -0,0 +1,133 @@\n+//\n+//  IntercomProvider.m\n+\n+#import \"IntercomProvider.h\"\n+#import \"Intercom.h\"\n+\n+static NSString *const kIntercomSuperPropertiesKey = @\"superProperties\";\n+\n+@interface IntercomProvider ()\n+\n+@property(nonatomic, strong) NSDictionary *superProperties;\n+\n+@end\n+\n+\n+@implementation IntercomProvider\n+\n+#ifdef AR_INTERCOM_EXISTS\n+\n+- (id)initWithApiKey:(NSString *)apiKey forAppId:(NSString *)appId {\n+    [Intercom setApiKey:apiKey forAppId:appId];\n+\tself = [super init];\n+    [self _unarchiveData];\n+    return self;\n+}\n+\n+- (void)event:(NSString *)event withProperties:(NSDictionary *)properties {\n+\t[Intercom logEventWithName:event metaData:properties];\n+}\n+\n+- (void)didShowNewPageView:(NSString *)pageTitle withProperties:(NSDictionary *)properties {\n+    NSString *event = [NSString stringWithFormat:@\"View @%\", pageTitle];\n+    [Intercom logEventWithName:event metaData:properties];\n+}\n+\n+- (void)identifyUserWithID:(NSString *)userID andEmailAddress:(NSString *)email {\n+    [Intercom registerUserWithUserId:userID];\n+    if (email) {\n+         [Intercom updateUserWithAttributes:@{ @\"email\" : email}];\n+    }\n+}\n+\n+#pragma mark - Super Properties\n+\n+- (void)addSuperProperties:(NSDictionary *)properties {\n+    properties = [properties copy];","path":"Providers/IntercomProvider.m","position":46,"original_position":46,"commit_id":"cbfc808d795b857d4a5633339068c00fd615f810","original_commit_id":"cbfc808d795b857d4a5633339068c00fd615f810","user":{"login":"zats","id":2688806,"avatar_url":"https://avatars.githubusercontent.com/u/2688806?v=3","gravatar_id":"","url":"https://api.github.com/users/zats","html_url":"https://github.com/zats","followers_url":"https://api.github.com/users/zats/followers","following_url":"https://api.github.com/users/zats/following{/other_user}","gists_url":"https://api.github.com/users/zats/gists{/gist_id}","starred_url":"https://api.github.com/users/zats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zats/subscriptions","organizations_url":"https://api.github.com/users/zats/orgs","repos_url":"https://api.github.com/users/zats/repos","events_url":"https://api.github.com/users/zats/events{/privacy}","received_events_url":"https://api.github.com/users/zats/received_events","type":"User","site_admin":false},"body":"no need","created_at":"2015-04-30T16:38:17Z","updated_at":"2015-04-30T16:38:17Z","html_url":"https://github.com/Labgoo/ARAnalytics/pull/6#discussion_r29446187","pull_request_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/comments/29446187"},"html":{"href":"https://github.com/Labgoo/ARAnalytics/pull/6#discussion_r29446187"},"pull_request":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6","id":34476829,"html_url":"https://github.com/Labgoo/ARAnalytics/pull/6","diff_url":"https://github.com/Labgoo/ARAnalytics/pull/6.diff","patch_url":"https://github.com/Labgoo/ARAnalytics/pull/6.patch","issue_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/6","number":6,"state":"open","locked":false,"title":"Integrate intercom into ARAnalytics","user":{"login":"liorr","id":1411811,"avatar_url":"https://avatars.githubusercontent.com/u/1411811?v=3","gravatar_id":"","url":"https://api.github.com/users/liorr","html_url":"https://github.com/liorr","followers_url":"https://api.github.com/users/liorr/followers","following_url":"https://api.github.com/users/liorr/following{/other_user}","gists_url":"https://api.github.com/users/liorr/gists{/gist_id}","starred_url":"https://api.github.com/users/liorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorr/subscriptions","organizations_url":"https://api.github.com/users/liorr/orgs","repos_url":"https://api.github.com/users/liorr/repos","events_url":"https://api.github.com/users/liorr/events{/privacy}","received_events_url":"https://api.github.com/users/liorr/received_events","type":"User","site_admin":false},"body":"Part 1 of https://www.pivotaltracker.com/story/show/93382490","created_at":"2015-04-30T16:25:57Z","updated_at":"2015-04-30T16:38:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23d3f82fbb2e874ff40d4a5200638c904163c713","assignee":{"login":"zats","id":2688806,"avatar_url":"https://avatars.githubusercontent.com/u/2688806?v=3","gravatar_id":"","url":"https://api.github.com/users/zats","html_url":"https://github.com/zats","followers_url":"https://api.github.com/users/zats/followers","following_url":"https://api.github.com/users/zats/following{/other_user}","gists_url":"https://api.github.com/users/zats/gists{/gist_id}","starred_url":"https://api.github.com/users/zats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zats/subscriptions","organizations_url":"https://api.github.com/users/zats/orgs","repos_url":"https://api.github.com/users/zats/repos","events_url":"https://api.github.com/users/zats/events{/privacy}","received_events_url":"https://api.github.com/users/zats/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/6/comments","statuses_url":"https://api.github.com/repos/Labgoo/ARAnalytics/statuses/cbfc808d795b857d4a5633339068c00fd615f810","head":{"label":"Labgoo:93382490-LR-support_for_intercom_io","ref":"93382490-LR-support_for_intercom_io","sha":"cbfc808d795b857d4a5633339068c00fd615f810","user":{"login":"Labgoo","id":2981965,"avatar_url":"https://avatars.githubusercontent.com/u/2981965?v=3","gravatar_id":"","url":"https://api.github.com/users/Labgoo","html_url":"https://github.com/Labgoo","followers_url":"https://api.github.com/users/Labgoo/followers","following_url":"https://api.github.com/users/Labgoo/following{/other_user}","gists_url":"https://api.github.com/users/Labgoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Labgoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Labgoo/subscriptions","organizations_url":"https://api.github.com/users/Labgoo/orgs","repos_url":"https://api.github.com/users/Labgoo/repos","events_url":"https://api.github.com/users/Labgoo/events{/privacy}","received_events_url":"https://api.github.com/users/Labgoo/received_events","type":"Organization","site_admin":false},"repo":{"id":18597369,"name":"ARAnalytics","full_name":"Labgoo/ARAnalytics","owner":{"login":"Labgoo","id":2981965,"avatar_url":"https://avatars.githubusercontent.com/u/2981965?v=3","gravatar_id":"","url":"https://api.github.com/users/Labgoo","html_url":"https://github.com/Labgoo","followers_url":"https://api.github.com/users/Labgoo/followers","following_url":"https://api.github.com/users/Labgoo/following{/other_user}","gists_url":"https://api.github.com/users/Labgoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Labgoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Labgoo/subscriptions","organizations_url":"https://api.github.com/users/Labgoo/orgs","repos_url":"https://api.github.com/users/Labgoo/repos","events_url":"https://api.github.com/users/Labgoo/events{/privacy}","received_events_url":"https://api.github.com/users/Labgoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Labgoo/ARAnalytics","description":"Simplify your iOS analytics","fork":true,"url":"https://api.github.com/repos/Labgoo/ARAnalytics","forks_url":"https://api.github.com/repos/Labgoo/ARAnalytics/forks","keys_url":"https://api.github.com/repos/Labgoo/ARAnalytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Labgoo/ARAnalytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Labgoo/ARAnalytics/teams","hooks_url":"https://api.github.com/repos/Labgoo/ARAnalytics/hooks","issue_events_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/events{/number}","events_url":"https://api.github.com/repos/Labgoo/ARAnalytics/events","assignees_url":"https://api.github.com/repos/Labgoo/ARAnalytics/assignees{/user}","branches_url":"https://api.github.com/repos/Labgoo/ARAnalytics/branches{/branch}","tags_url":"https://api.github.com/repos/Labgoo/ARAnalytics/tags","blobs_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Labgoo/ARAnalytics/statuses/{sha}","languages_url":"https://api.github.com/repos/Labgoo/ARAnalytics/languages","stargazers_url":"https://api.github.com/repos/Labgoo/ARAnalytics/stargazers","contributors_url":"https://api.github.com/repos/Labgoo/ARAnalytics/contributors","subscribers_url":"https://api.github.com/repos/Labgoo/ARAnalytics/subscribers","subscription_url":"https://api.github.com/repos/Labgoo/ARAnalytics/subscription","commits_url":"https://api.github.com/repos/Labgoo/ARAnalytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Labgoo/ARAnalytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Labgoo/ARAnalytics/contents/{+path}","compare_url":"https://api.github.com/repos/Labgoo/ARAnalytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Labgoo/ARAnalytics/merges","archive_url":"https://api.github.com/repos/Labgoo/ARAnalytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Labgoo/ARAnalytics/downloads","issues_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues{/number}","pulls_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls{/number}","milestones_url":"https://api.github.com/repos/Labgoo/ARAnalytics/milestones{/number}","notifications_url":"https://api.github.com/repos/Labgoo/ARAnalytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Labgoo/ARAnalytics/labels{/name}","releases_url":"https://api.github.com/repos/Labgoo/ARAnalytics/releases{/id}","created_at":"2014-04-09T13:03:38Z","updated_at":"2015-04-20T17:30:09Z","pushed_at":"2015-04-30T16:25:57Z","git_url":"git://github.com/Labgoo/ARAnalytics.git","ssh_url":"git@github.com:Labgoo/ARAnalytics.git","clone_url":"https://github.com/Labgoo/ARAnalytics.git","svn_url":"https://github.com/Labgoo/ARAnalytics","homepage":"","size":1519,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"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":"Labgoo:master","ref":"master","sha":"78fc6ae2eec236366a824b1c8d2c2a5a1470014c","user":{"login":"Labgoo","id":2981965,"avatar_url":"https://avatars.githubusercontent.com/u/2981965?v=3","gravatar_id":"","url":"https://api.github.com/users/Labgoo","html_url":"https://github.com/Labgoo","followers_url":"https://api.github.com/users/Labgoo/followers","following_url":"https://api.github.com/users/Labgoo/following{/other_user}","gists_url":"https://api.github.com/users/Labgoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Labgoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Labgoo/subscriptions","organizations_url":"https://api.github.com/users/Labgoo/orgs","repos_url":"https://api.github.com/users/Labgoo/repos","events_url":"https://api.github.com/users/Labgoo/events{/privacy}","received_events_url":"https://api.github.com/users/Labgoo/received_events","type":"Organization","site_admin":false},"repo":{"id":18597369,"name":"ARAnalytics","full_name":"Labgoo/ARAnalytics","owner":{"login":"Labgoo","id":2981965,"avatar_url":"https://avatars.githubusercontent.com/u/2981965?v=3","gravatar_id":"","url":"https://api.github.com/users/Labgoo","html_url":"https://github.com/Labgoo","followers_url":"https://api.github.com/users/Labgoo/followers","following_url":"https://api.github.com/users/Labgoo/following{/other_user}","gists_url":"https://api.github.com/users/Labgoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Labgoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Labgoo/subscriptions","organizations_url":"https://api.github.com/users/Labgoo/orgs","repos_url":"https://api.github.com/users/Labgoo/repos","events_url":"https://api.github.com/users/Labgoo/events{/privacy}","received_events_url":"https://api.github.com/users/Labgoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Labgoo/ARAnalytics","description":"Simplify your iOS analytics","fork":true,"url":"https://api.github.com/repos/Labgoo/ARAnalytics","forks_url":"https://api.github.com/repos/Labgoo/ARAnalytics/forks","keys_url":"https://api.github.com/repos/Labgoo/ARAnalytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Labgoo/ARAnalytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Labgoo/ARAnalytics/teams","hooks_url":"https://api.github.com/repos/Labgoo/ARAnalytics/hooks","issue_events_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/events{/number}","events_url":"https://api.github.com/repos/Labgoo/ARAnalytics/events","assignees_url":"https://api.github.com/repos/Labgoo/ARAnalytics/assignees{/user}","branches_url":"https://api.github.com/repos/Labgoo/ARAnalytics/branches{/branch}","tags_url":"https://api.github.com/repos/Labgoo/ARAnalytics/tags","blobs_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Labgoo/ARAnalytics/statuses/{sha}","languages_url":"https://api.github.com/repos/Labgoo/ARAnalytics/languages","stargazers_url":"https://api.github.com/repos/Labgoo/ARAnalytics/stargazers","contributors_url":"https://api.github.com/repos/Labgoo/ARAnalytics/contributors","subscribers_url":"https://api.github.com/repos/Labgoo/ARAnalytics/subscribers","subscription_url":"https://api.github.com/repos/Labgoo/ARAnalytics/subscription","commits_url":"https://api.github.com/repos/Labgoo/ARAnalytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/Labgoo/ARAnalytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/Labgoo/ARAnalytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/Labgoo/ARAnalytics/contents/{+path}","compare_url":"https://api.github.com/repos/Labgoo/ARAnalytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Labgoo/ARAnalytics/merges","archive_url":"https://api.github.com/repos/Labgoo/ARAnalytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Labgoo/ARAnalytics/downloads","issues_url":"https://api.github.com/repos/Labgoo/ARAnalytics/issues{/number}","pulls_url":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls{/number}","milestones_url":"https://api.github.com/repos/Labgoo/ARAnalytics/milestones{/number}","notifications_url":"https://api.github.com/repos/Labgoo/ARAnalytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Labgoo/ARAnalytics/labels{/name}","releases_url":"https://api.github.com/repos/Labgoo/ARAnalytics/releases{/id}","created_at":"2014-04-09T13:03:38Z","updated_at":"2015-04-20T17:30:09Z","pushed_at":"2015-04-30T16:25:57Z","git_url":"git://github.com/Labgoo/ARAnalytics.git","ssh_url":"git@github.com:Labgoo/ARAnalytics.git","clone_url":"https://github.com/Labgoo/ARAnalytics.git","svn_url":"https://github.com/Labgoo/ARAnalytics","homepage":"","size":1519,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"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/Labgoo/ARAnalytics/pulls/6"},"html":{"href":"https://github.com/Labgoo/ARAnalytics/pull/6"},"issue":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/6"},"comments":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Labgoo/ARAnalytics/statuses/cbfc808d795b857d4a5633339068c00fd615f810"}}}}