{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1","id":60526292,"html_url":"https://github.com/euwyn/react-native-segment-android/pull/1","diff_url":"https://github.com/euwyn/react-native-segment-android/pull/1.diff","patch_url":"https://github.com/euwyn/react-native-segment-android/pull/1.patch","issue_url":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/1","number":1,"state":"open","locked":false,"title":"Enhancing the Segment API","user":{"login":"gijoehosaphat","id":346093,"avatar_url":"https://avatars.githubusercontent.com/u/346093?v=3","gravatar_id":"","url":"https://api.github.com/users/gijoehosaphat","html_url":"https://github.com/gijoehosaphat","followers_url":"https://api.github.com/users/gijoehosaphat/followers","following_url":"https://api.github.com/users/gijoehosaphat/following{/other_user}","gists_url":"https://api.github.com/users/gijoehosaphat/gists{/gist_id}","starred_url":"https://api.github.com/users/gijoehosaphat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijoehosaphat/subscriptions","organizations_url":"https://api.github.com/users/gijoehosaphat/orgs","repos_url":"https://api.github.com/users/gijoehosaphat/repos","events_url":"https://api.github.com/users/gijoehosaphat/events{/privacy}","received_events_url":"https://api.github.com/users/gijoehosaphat/received_events","type":"User","site_admin":false},"body":"Hi,\r\nWith this PR I've added the following changes:\r\n\r\nMapped all methods to match the names from the Segment API.\r\nSo `setUserId` becomes `identify`. This is a breaking change, but I think it makes it easier to understand and follow.\r\n\r\nSo now there are the following methods:\r\ninitialize\r\nidentify\r\nidentifyWithTraits\r\ntrack\r\ntrackWithProps\r\nalias\r\ngroup\r\ngroupWithTraits\r\nscreen\r\n\r\nEssentially all the Segment basic methods.\r\n\r\nI also updated the README to give instructions on how to properly install this module in your ReactNative app.\r\n","created_at":"2016-02-24T15:30:06Z","updated_at":"2016-02-24T15:30:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1/commits","review_comments_url":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1/comments","review_comment_url":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/1/comments","statuses_url":"https://api.github.com/repos/euwyn/react-native-segment-android/statuses/7978010413f1ac51ce28fcb0eca17dc8c2a274eb","head":{"label":"gijoehosaphat:master","ref":"master","sha":"7978010413f1ac51ce28fcb0eca17dc8c2a274eb","user":{"login":"gijoehosaphat","id":346093,"avatar_url":"https://avatars.githubusercontent.com/u/346093?v=3","gravatar_id":"","url":"https://api.github.com/users/gijoehosaphat","html_url":"https://github.com/gijoehosaphat","followers_url":"https://api.github.com/users/gijoehosaphat/followers","following_url":"https://api.github.com/users/gijoehosaphat/following{/other_user}","gists_url":"https://api.github.com/users/gijoehosaphat/gists{/gist_id}","starred_url":"https://api.github.com/users/gijoehosaphat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijoehosaphat/subscriptions","organizations_url":"https://api.github.com/users/gijoehosaphat/orgs","repos_url":"https://api.github.com/users/gijoehosaphat/repos","events_url":"https://api.github.com/users/gijoehosaphat/events{/privacy}","received_events_url":"https://api.github.com/users/gijoehosaphat/received_events","type":"User","site_admin":false},"repo":{"id":52176069,"name":"react-native-segment-android","full_name":"gijoehosaphat/react-native-segment-android","owner":{"login":"gijoehosaphat","id":346093,"avatar_url":"https://avatars.githubusercontent.com/u/346093?v=3","gravatar_id":"","url":"https://api.github.com/users/gijoehosaphat","html_url":"https://github.com/gijoehosaphat","followers_url":"https://api.github.com/users/gijoehosaphat/followers","following_url":"https://api.github.com/users/gijoehosaphat/following{/other_user}","gists_url":"https://api.github.com/users/gijoehosaphat/gists{/gist_id}","starred_url":"https://api.github.com/users/gijoehosaphat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijoehosaphat/subscriptions","organizations_url":"https://api.github.com/users/gijoehosaphat/orgs","repos_url":"https://api.github.com/users/gijoehosaphat/repos","events_url":"https://api.github.com/users/gijoehosaphat/events{/privacy}","received_events_url":"https://api.github.com/users/gijoehosaphat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gijoehosaphat/react-native-segment-android","description":"","fork":true,"url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android","forks_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/forks","keys_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/teams","hooks_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/hooks","issue_events_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/issues/events{/number}","events_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/events","assignees_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/assignees{/user}","branches_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/branches{/branch}","tags_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/tags","blobs_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/statuses/{sha}","languages_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/languages","stargazers_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/stargazers","contributors_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/contributors","subscribers_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/subscribers","subscription_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/subscription","commits_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/contents/{+path}","compare_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/merges","archive_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/downloads","issues_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/issues{/number}","pulls_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/pulls{/number}","milestones_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/milestones{/number}","notifications_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/labels{/name}","releases_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/releases{/id}","deployments_url":"https://api.github.com/repos/gijoehosaphat/react-native-segment-android/deployments","created_at":"2016-02-20T21:18:48Z","updated_at":"2016-02-20T21:18:48Z","pushed_at":"2016-02-24T15:20:40Z","git_url":"git://github.com/gijoehosaphat/react-native-segment-android.git","ssh_url":"git@github.com:gijoehosaphat/react-native-segment-android.git","clone_url":"https://github.com/gijoehosaphat/react-native-segment-android.git","svn_url":"https://github.com/gijoehosaphat/react-native-segment-android","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"euwyn:master","ref":"master","sha":"91f365719fbe1437c3a8faa4112a2ee2d3d06f36","user":{"login":"euwyn","id":54173,"avatar_url":"https://avatars.githubusercontent.com/u/54173?v=3","gravatar_id":"","url":"https://api.github.com/users/euwyn","html_url":"https://github.com/euwyn","followers_url":"https://api.github.com/users/euwyn/followers","following_url":"https://api.github.com/users/euwyn/following{/other_user}","gists_url":"https://api.github.com/users/euwyn/gists{/gist_id}","starred_url":"https://api.github.com/users/euwyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euwyn/subscriptions","organizations_url":"https://api.github.com/users/euwyn/orgs","repos_url":"https://api.github.com/users/euwyn/repos","events_url":"https://api.github.com/users/euwyn/events{/privacy}","received_events_url":"https://api.github.com/users/euwyn/received_events","type":"User","site_admin":false},"repo":{"id":49549270,"name":"react-native-segment-android","full_name":"euwyn/react-native-segment-android","owner":{"login":"euwyn","id":54173,"avatar_url":"https://avatars.githubusercontent.com/u/54173?v=3","gravatar_id":"","url":"https://api.github.com/users/euwyn","html_url":"https://github.com/euwyn","followers_url":"https://api.github.com/users/euwyn/followers","following_url":"https://api.github.com/users/euwyn/following{/other_user}","gists_url":"https://api.github.com/users/euwyn/gists{/gist_id}","starred_url":"https://api.github.com/users/euwyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euwyn/subscriptions","organizations_url":"https://api.github.com/users/euwyn/orgs","repos_url":"https://api.github.com/users/euwyn/repos","events_url":"https://api.github.com/users/euwyn/events{/privacy}","received_events_url":"https://api.github.com/users/euwyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/euwyn/react-native-segment-android","description":"","fork":false,"url":"https://api.github.com/repos/euwyn/react-native-segment-android","forks_url":"https://api.github.com/repos/euwyn/react-native-segment-android/forks","keys_url":"https://api.github.com/repos/euwyn/react-native-segment-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/euwyn/react-native-segment-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/euwyn/react-native-segment-android/teams","hooks_url":"https://api.github.com/repos/euwyn/react-native-segment-android/hooks","issue_events_url":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/events{/number}","events_url":"https://api.github.com/repos/euwyn/react-native-segment-android/events","assignees_url":"https://api.github.com/repos/euwyn/react-native-segment-android/assignees{/user}","branches_url":"https://api.github.com/repos/euwyn/react-native-segment-android/branches{/branch}","tags_url":"https://api.github.com/repos/euwyn/react-native-segment-android/tags","blobs_url":"https://api.github.com/repos/euwyn/react-native-segment-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/euwyn/react-native-segment-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/euwyn/react-native-segment-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/euwyn/react-native-segment-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/euwyn/react-native-segment-android/statuses/{sha}","languages_url":"https://api.github.com/repos/euwyn/react-native-segment-android/languages","stargazers_url":"https://api.github.com/repos/euwyn/react-native-segment-android/stargazers","contributors_url":"https://api.github.com/repos/euwyn/react-native-segment-android/contributors","subscribers_url":"https://api.github.com/repos/euwyn/react-native-segment-android/subscribers","subscription_url":"https://api.github.com/repos/euwyn/react-native-segment-android/subscription","commits_url":"https://api.github.com/repos/euwyn/react-native-segment-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/euwyn/react-native-segment-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/euwyn/react-native-segment-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/euwyn/react-native-segment-android/contents/{+path}","compare_url":"https://api.github.com/repos/euwyn/react-native-segment-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/euwyn/react-native-segment-android/merges","archive_url":"https://api.github.com/repos/euwyn/react-native-segment-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/euwyn/react-native-segment-android/downloads","issues_url":"https://api.github.com/repos/euwyn/react-native-segment-android/issues{/number}","pulls_url":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls{/number}","milestones_url":"https://api.github.com/repos/euwyn/react-native-segment-android/milestones{/number}","notifications_url":"https://api.github.com/repos/euwyn/react-native-segment-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/euwyn/react-native-segment-android/labels{/name}","releases_url":"https://api.github.com/repos/euwyn/react-native-segment-android/releases{/id}","deployments_url":"https://api.github.com/repos/euwyn/react-native-segment-android/deployments","created_at":"2016-01-13T04:27:31Z","updated_at":"2016-01-13T04:28:05Z","pushed_at":"2016-01-13T04:30:13Z","git_url":"git://github.com/euwyn/react-native-segment-android.git","ssh_url":"git@github.com:euwyn/react-native-segment-android.git","clone_url":"https://github.com/euwyn/react-native-segment-android.git","svn_url":"https://github.com/euwyn/react-native-segment-android","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1"},"html":{"href":"https://github.com/euwyn/react-native-segment-android/pull/1"},"issue":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/1"},"comments":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/euwyn/react-native-segment-android/statuses/7978010413f1ac51ce28fcb0eca17dc8c2a274eb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":220,"deletions":59,"changed_files":4}}