{"action":"created","comment":{"url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/comments/207605278","pull_request_review_id":143256882,"id":207605278,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzYwNTI3OA==","diff_hunk":"@@ -159,6 +159,22 @@ const config = new class {\n      */\n     deviceUID = null;\n \n+    telemetry = {\n+        /**\n+         * Mixpanel base URL. base64 encoded tracking events get added to this.\n+         * @type {string}\n+         */\n+        baseUrl: 'https://api.mixpanel.com/track/?data=',\n+\n+        /**\n+         * Token for our Mixpanel account.\n+         * TODO: this is staging token, change to prod.\n+         * TODO: or, get from server?\n+         * @type {string}\n+         */\n+        token: '05ee93d5cdb68e0de0709b6c85200c44'","path":"src/config.js","position":17,"original_position":17,"commit_id":"c3dd2b3bcb1eb0f4ca6f52df0510f3bf0bb08c9b","original_commit_id":"c3dd2b3bcb1eb0f4ca6f52df0510f3bf0bb08c9b","user":{"login":"suprko","id":22176050,"node_id":"MDQ6VXNlcjIyMTc2MDUw","avatar_url":"https://avatars1.githubusercontent.com/u/22176050?v=4","gravatar_id":"","url":"https://api.github.com/users/suprko","html_url":"https://github.com/suprko","followers_url":"https://api.github.com/users/suprko/followers","following_url":"https://api.github.com/users/suprko/following{/other_user}","gists_url":"https://api.github.com/users/suprko/gists{/gist_id}","starred_url":"https://api.github.com/users/suprko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suprko/subscriptions","organizations_url":"https://api.github.com/users/suprko/orgs","repos_url":"https://api.github.com/users/suprko/repos","events_url":"https://api.github.com/users/suprko/events{/privacy}","received_events_url":"https://api.github.com/users/suprko/received_events","type":"User","site_admin":false},"body":"@flohdot here you go 🤷‍♂️ ","created_at":"2018-08-03T16:51:22Z","updated_at":"2018-08-03T16:51:22Z","html_url":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258#discussion_r207605278","pull_request_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/comments/207605278"},"html":{"href":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258#discussion_r207605278"},"pull_request":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258"}}},"pull_request":{"url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258","id":202689602,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNjg5NjAy","html_url":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258","diff_url":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258.diff","patch_url":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258.patch","issue_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/258","number":258,"state":"open","locked":false,"title":"WIP: telemetry","user":{"login":"suprko","id":22176050,"node_id":"MDQ6VXNlcjIyMTc2MDUw","avatar_url":"https://avatars1.githubusercontent.com/u/22176050?v=4","gravatar_id":"","url":"https://api.github.com/users/suprko","html_url":"https://github.com/suprko","followers_url":"https://api.github.com/users/suprko/followers","following_url":"https://api.github.com/users/suprko/following{/other_user}","gists_url":"https://api.github.com/users/suprko/gists{/gist_id}","starred_url":"https://api.github.com/users/suprko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suprko/subscriptions","organizations_url":"https://api.github.com/users/suprko/orgs","repos_url":"https://api.github.com/users/suprko/repos","events_url":"https://api.github.com/users/suprko/events{/privacy}","received_events_url":"https://api.github.com/users/suprko/received_events","type":"User","site_admin":false},"body":"#### Relevant info and issue/PR links \r\ndesktop https://github.com/PeerioTechnologies/peerio-desktop/pull/377\r\n\r\n#### Testing instructions  \r\nBasic functions for sending events to Mixpanel via HTTP API, and helper functions for things that we want to share between mobile and desktop.\r\n\r\n----\r\n### Repository owner\r\n\r\n- [ ] Was tested and can be merged.\r\n- [ ] PR name follows conventional changelog format.\r\n\r\n[PR guideline](https://github.com/PeerioTechnologies/peerio-icebear/blob/dev/docs/CONTRIBUTING.md)\r\n","created_at":"2018-07-19T21:31:39Z","updated_at":"2018-08-03T16:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90d75e079de2a39e4d974f648c5357c8a4b30909","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dchest","id":52677,"node_id":"MDQ6VXNlcjUyNjc3","avatar_url":"https://avatars2.githubusercontent.com/u/52677?v=4","gravatar_id":"","url":"https://api.github.com/users/dchest","html_url":"https://github.com/dchest","followers_url":"https://api.github.com/users/dchest/followers","following_url":"https://api.github.com/users/dchest/following{/other_user}","gists_url":"https://api.github.com/users/dchest/gists{/gist_id}","starred_url":"https://api.github.com/users/dchest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchest/subscriptions","organizations_url":"https://api.github.com/users/dchest/orgs","repos_url":"https://api.github.com/users/dchest/repos","events_url":"https://api.github.com/users/dchest/events{/privacy}","received_events_url":"https://api.github.com/users/dchest/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258/commits","review_comments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258/comments","review_comment_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/258/comments","statuses_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/statuses/c3dd2b3bcb1eb0f4ca6f52df0510f3bf0bb08c9b","head":{"label":"PeerioTechnologies:telemetry","ref":"telemetry","sha":"c3dd2b3bcb1eb0f4ca6f52df0510f3bf0bb08c9b","user":{"login":"PeerioTechnologies","id":8494251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0OTQyNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8494251?v=4","gravatar_id":"","url":"https://api.github.com/users/PeerioTechnologies","html_url":"https://github.com/PeerioTechnologies","followers_url":"https://api.github.com/users/PeerioTechnologies/followers","following_url":"https://api.github.com/users/PeerioTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/PeerioTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/PeerioTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeerioTechnologies/subscriptions","organizations_url":"https://api.github.com/users/PeerioTechnologies/orgs","repos_url":"https://api.github.com/users/PeerioTechnologies/repos","events_url":"https://api.github.com/users/PeerioTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/PeerioTechnologies/received_events","type":"Organization","site_admin":false},"repo":{"id":63130290,"node_id":"MDEwOlJlcG9zaXRvcnk2MzEzMDI5MA==","name":"peerio-icebear","full_name":"PeerioTechnologies/peerio-icebear","owner":{"login":"PeerioTechnologies","id":8494251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0OTQyNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8494251?v=4","gravatar_id":"","url":"https://api.github.com/users/PeerioTechnologies","html_url":"https://github.com/PeerioTechnologies","followers_url":"https://api.github.com/users/PeerioTechnologies/followers","following_url":"https://api.github.com/users/PeerioTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/PeerioTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/PeerioTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeerioTechnologies/subscriptions","organizations_url":"https://api.github.com/users/PeerioTechnologies/orgs","repos_url":"https://api.github.com/users/PeerioTechnologies/repos","events_url":"https://api.github.com/users/PeerioTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/PeerioTechnologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PeerioTechnologies/peerio-icebear","description":"Peerio Icebear SDK is a client library supporting Peerio apps","fork":false,"url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear","forks_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/forks","keys_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/teams","hooks_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/hooks","issue_events_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/events{/number}","events_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/events","assignees_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/assignees{/user}","branches_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/branches{/branch}","tags_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/tags","blobs_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/statuses/{sha}","languages_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/languages","stargazers_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/stargazers","contributors_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/contributors","subscribers_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/subscribers","subscription_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/subscription","commits_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/contents/{+path}","compare_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/merges","archive_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/downloads","issues_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues{/number}","pulls_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls{/number}","milestones_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/milestones{/number}","notifications_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/labels{/name}","releases_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/releases{/id}","deployments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/deployments","created_at":"2016-07-12T05:52:13Z","updated_at":"2018-08-02T18:59:54Z","pushed_at":"2018-08-03T16:50:31Z","git_url":"git://github.com/PeerioTechnologies/peerio-icebear.git","ssh_url":"git@github.com:PeerioTechnologies/peerio-icebear.git","clone_url":"https://github.com/PeerioTechnologies/peerio-icebear.git","svn_url":"https://github.com/PeerioTechnologies/peerio-icebear","homepage":"https://peerio.com","size":5700,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":5,"watchers":3,"default_branch":"dev"}},"base":{"label":"PeerioTechnologies:dev","ref":"dev","sha":"4e859670766d1c6c631b2cd041af07b523d3a1aa","user":{"login":"PeerioTechnologies","id":8494251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0OTQyNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8494251?v=4","gravatar_id":"","url":"https://api.github.com/users/PeerioTechnologies","html_url":"https://github.com/PeerioTechnologies","followers_url":"https://api.github.com/users/PeerioTechnologies/followers","following_url":"https://api.github.com/users/PeerioTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/PeerioTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/PeerioTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeerioTechnologies/subscriptions","organizations_url":"https://api.github.com/users/PeerioTechnologies/orgs","repos_url":"https://api.github.com/users/PeerioTechnologies/repos","events_url":"https://api.github.com/users/PeerioTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/PeerioTechnologies/received_events","type":"Organization","site_admin":false},"repo":{"id":63130290,"node_id":"MDEwOlJlcG9zaXRvcnk2MzEzMDI5MA==","name":"peerio-icebear","full_name":"PeerioTechnologies/peerio-icebear","owner":{"login":"PeerioTechnologies","id":8494251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0OTQyNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8494251?v=4","gravatar_id":"","url":"https://api.github.com/users/PeerioTechnologies","html_url":"https://github.com/PeerioTechnologies","followers_url":"https://api.github.com/users/PeerioTechnologies/followers","following_url":"https://api.github.com/users/PeerioTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/PeerioTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/PeerioTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeerioTechnologies/subscriptions","organizations_url":"https://api.github.com/users/PeerioTechnologies/orgs","repos_url":"https://api.github.com/users/PeerioTechnologies/repos","events_url":"https://api.github.com/users/PeerioTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/PeerioTechnologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PeerioTechnologies/peerio-icebear","description":"Peerio Icebear SDK is a client library supporting Peerio apps","fork":false,"url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear","forks_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/forks","keys_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/teams","hooks_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/hooks","issue_events_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/events{/number}","events_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/events","assignees_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/assignees{/user}","branches_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/branches{/branch}","tags_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/tags","blobs_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/statuses/{sha}","languages_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/languages","stargazers_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/stargazers","contributors_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/contributors","subscribers_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/subscribers","subscription_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/subscription","commits_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/contents/{+path}","compare_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/merges","archive_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/downloads","issues_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues{/number}","pulls_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls{/number}","milestones_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/milestones{/number}","notifications_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/labels{/name}","releases_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/releases{/id}","deployments_url":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/deployments","created_at":"2016-07-12T05:52:13Z","updated_at":"2018-08-02T18:59:54Z","pushed_at":"2018-08-03T16:50:31Z","git_url":"git://github.com/PeerioTechnologies/peerio-icebear.git","ssh_url":"git@github.com:PeerioTechnologies/peerio-icebear.git","clone_url":"https://github.com/PeerioTechnologies/peerio-icebear.git","svn_url":"https://github.com/PeerioTechnologies/peerio-icebear","homepage":"https://peerio.com","size":5700,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":5,"watchers":3,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258"},"html":{"href":"https://github.com/PeerioTechnologies/peerio-icebear/pull/258"},"issue":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/258"},"comments":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/issues/258/comments"},"review_comments":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258/comments"},"review_comment":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/pulls/258/commits"},"statuses":{"href":"https://api.github.com/repos/PeerioTechnologies/peerio-icebear/statuses/c3dd2b3bcb1eb0f4ca6f52df0510f3bf0bb08c9b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"suprko"}}