{"action":"created","comment":{"url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/comments/61189854","id":61189854,"diff_hunk":"@@ -0,0 +1,43 @@\n+### How do I get the access token generated for a user after registration or login?\n+\n+```javascript\n+janrain.events.onCaptureLoginSuccess.addHandler(function(response) {\n+  var accessToken = response.accessToken;\n+})\n+```\n+\n+### How do I get a user's display name from localStorage after they have logged in?\n+\n+```javascript\n+janrain.events.onCaptureLoginSuccess.addHandler(function(response) {\n+  var janrainCaptureProfileData = localStorage.janrainCaptureProfileData;\n+  var janrainCaptureProfileDataParsed = JSON.parse(janrainCaptureProfileData);\n+  var displayName = janrainCaptureProfileDataParsed.displayName;\n+})\n+```\n+\n+### onCaptureSaveSuccess fires when a user updates anything in their record, but I want to show a specific message when a user updates their password. How can I do that?","path":"eventHandlers.md","position":19,"original_position":19,"commit_id":"e5ab0a168431e0d4c3d351ea0fbf03fce5534b23","original_commit_id":"e5ab0a168431e0d4c3d351ea0fbf03fce5534b23","user":{"login":"kris-janrain","id":8333338,"avatar_url":"https://avatars.githubusercontent.com/u/8333338?v=3","gravatar_id":"","url":"https://api.github.com/users/kris-janrain","html_url":"https://github.com/kris-janrain","followers_url":"https://api.github.com/users/kris-janrain/followers","following_url":"https://api.github.com/users/kris-janrain/following{/other_user}","gists_url":"https://api.github.com/users/kris-janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/kris-janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kris-janrain/subscriptions","organizations_url":"https://api.github.com/users/kris-janrain/orgs","repos_url":"https://api.github.com/users/kris-janrain/repos","events_url":"https://api.github.com/users/kris-janrain/events{/privacy}","received_events_url":"https://api.github.com/users/kris-janrain/received_events","type":"User","site_admin":false},"body":"`onCaptureSaveSuccess` fires\r\n\r\nupdates the user's password","created_at":"2016-04-27T01:01:49Z","updated_at":"2016-04-27T01:01:49Z","html_url":"https://github.com/janrain/Janrain-Sample-Code/pull/23#discussion_r61189854","pull_request_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/comments/61189854"},"html":{"href":"https://github.com/janrain/Janrain-Sample-Code/pull/23#discussion_r61189854"},"pull_request":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23","id":67981541,"html_url":"https://github.com/janrain/Janrain-Sample-Code/pull/23","diff_url":"https://github.com/janrain/Janrain-Sample-Code/pull/23.diff","patch_url":"https://github.com/janrain/Janrain-Sample-Code/pull/23.patch","issue_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/23","number":23,"state":"open","locked":false,"title":"DOCS-1605 Code Samples: Using Event Handlers","user":{"login":"cameron-white-janrain","id":16297132,"avatar_url":"https://avatars.githubusercontent.com/u/16297132?v=3","gravatar_id":"","url":"https://api.github.com/users/cameron-white-janrain","html_url":"https://github.com/cameron-white-janrain","followers_url":"https://api.github.com/users/cameron-white-janrain/followers","following_url":"https://api.github.com/users/cameron-white-janrain/following{/other_user}","gists_url":"https://api.github.com/users/cameron-white-janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/cameron-white-janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameron-white-janrain/subscriptions","organizations_url":"https://api.github.com/users/cameron-white-janrain/orgs","repos_url":"https://api.github.com/users/cameron-white-janrain/repos","events_url":"https://api.github.com/users/cameron-white-janrain/events{/privacy}","received_events_url":"https://api.github.com/users/cameron-white-janrain/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-27T00:57:50Z","updated_at":"2016-04-27T01:01:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca2bbf65fe1f194bc89aaa09957652c087687b68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23/commits","review_comments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23/comments","review_comment_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/23/comments","statuses_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/statuses/e5ab0a168431e0d4c3d351ea0fbf03fce5534b23","head":{"label":"janrain:topic/DOCS-1605/using-event-handlers","ref":"topic/DOCS-1605/using-event-handlers","sha":"e5ab0a168431e0d4c3d351ea0fbf03fce5534b23","user":{"login":"janrain","id":237548,"avatar_url":"https://avatars.githubusercontent.com/u/237548?v=3","gravatar_id":"","url":"https://api.github.com/users/janrain","html_url":"https://github.com/janrain","followers_url":"https://api.github.com/users/janrain/followers","following_url":"https://api.github.com/users/janrain/following{/other_user}","gists_url":"https://api.github.com/users/janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janrain/subscriptions","organizations_url":"https://api.github.com/users/janrain/orgs","repos_url":"https://api.github.com/users/janrain/repos","events_url":"https://api.github.com/users/janrain/events{/privacy}","received_events_url":"https://api.github.com/users/janrain/received_events","type":"Organization","site_admin":false},"repo":{"id":1203325,"name":"Janrain-Sample-Code","full_name":"janrain/Janrain-Sample-Code","owner":{"login":"janrain","id":237548,"avatar_url":"https://avatars.githubusercontent.com/u/237548?v=3","gravatar_id":"","url":"https://api.github.com/users/janrain","html_url":"https://github.com/janrain","followers_url":"https://api.github.com/users/janrain/followers","following_url":"https://api.github.com/users/janrain/following{/other_user}","gists_url":"https://api.github.com/users/janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janrain/subscriptions","organizations_url":"https://api.github.com/users/janrain/orgs","repos_url":"https://api.github.com/users/janrain/repos","events_url":"https://api.github.com/users/janrain/events{/privacy}","received_events_url":"https://api.github.com/users/janrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/janrain/Janrain-Sample-Code","description":"Janrain Sample Code","fork":false,"url":"https://api.github.com/repos/janrain/Janrain-Sample-Code","forks_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/forks","keys_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/teams","hooks_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/hooks","issue_events_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/events{/number}","events_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/events","assignees_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/assignees{/user}","branches_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/branches{/branch}","tags_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/tags","blobs_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/refs{/sha}","trees_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/statuses/{sha}","languages_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/languages","stargazers_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/stargazers","contributors_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/contributors","subscribers_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/subscribers","subscription_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/subscription","commits_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/commits{/sha}","git_commits_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/commits{/sha}","comments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/comments{/number}","issue_comment_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/comments{/number}","contents_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/contents/{+path}","compare_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/merges","archive_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/downloads","issues_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues{/number}","pulls_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls{/number}","milestones_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/milestones{/number}","notifications_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/labels{/name}","releases_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/releases{/id}","deployments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/deployments","created_at":"2010-12-28T16:22:59Z","updated_at":"2016-03-31T20:37:24Z","pushed_at":"2016-04-27T00:57:50Z","git_url":"git://github.com/janrain/Janrain-Sample-Code.git","ssh_url":"git@github.com:janrain/Janrain-Sample-Code.git","clone_url":"https://github.com/janrain/Janrain-Sample-Code.git","svn_url":"https://github.com/janrain/Janrain-Sample-Code","homepage":"http://janrain.com","size":690,"stargazers_count":78,"watchers_count":78,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":6,"forks":96,"open_issues":6,"watchers":78,"default_branch":"master"}},"base":{"label":"janrain:master","ref":"master","sha":"e2b58214de901f2ef970497d63d85c7396aec3c9","user":{"login":"janrain","id":237548,"avatar_url":"https://avatars.githubusercontent.com/u/237548?v=3","gravatar_id":"","url":"https://api.github.com/users/janrain","html_url":"https://github.com/janrain","followers_url":"https://api.github.com/users/janrain/followers","following_url":"https://api.github.com/users/janrain/following{/other_user}","gists_url":"https://api.github.com/users/janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janrain/subscriptions","organizations_url":"https://api.github.com/users/janrain/orgs","repos_url":"https://api.github.com/users/janrain/repos","events_url":"https://api.github.com/users/janrain/events{/privacy}","received_events_url":"https://api.github.com/users/janrain/received_events","type":"Organization","site_admin":false},"repo":{"id":1203325,"name":"Janrain-Sample-Code","full_name":"janrain/Janrain-Sample-Code","owner":{"login":"janrain","id":237548,"avatar_url":"https://avatars.githubusercontent.com/u/237548?v=3","gravatar_id":"","url":"https://api.github.com/users/janrain","html_url":"https://github.com/janrain","followers_url":"https://api.github.com/users/janrain/followers","following_url":"https://api.github.com/users/janrain/following{/other_user}","gists_url":"https://api.github.com/users/janrain/gists{/gist_id}","starred_url":"https://api.github.com/users/janrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janrain/subscriptions","organizations_url":"https://api.github.com/users/janrain/orgs","repos_url":"https://api.github.com/users/janrain/repos","events_url":"https://api.github.com/users/janrain/events{/privacy}","received_events_url":"https://api.github.com/users/janrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/janrain/Janrain-Sample-Code","description":"Janrain Sample Code","fork":false,"url":"https://api.github.com/repos/janrain/Janrain-Sample-Code","forks_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/forks","keys_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/teams","hooks_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/hooks","issue_events_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/events{/number}","events_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/events","assignees_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/assignees{/user}","branches_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/branches{/branch}","tags_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/tags","blobs_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/refs{/sha}","trees_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/statuses/{sha}","languages_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/languages","stargazers_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/stargazers","contributors_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/contributors","subscribers_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/subscribers","subscription_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/subscription","commits_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/commits{/sha}","git_commits_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/git/commits{/sha}","comments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/comments{/number}","issue_comment_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/comments{/number}","contents_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/contents/{+path}","compare_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/merges","archive_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/downloads","issues_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues{/number}","pulls_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls{/number}","milestones_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/milestones{/number}","notifications_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/labels{/name}","releases_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/releases{/id}","deployments_url":"https://api.github.com/repos/janrain/Janrain-Sample-Code/deployments","created_at":"2010-12-28T16:22:59Z","updated_at":"2016-03-31T20:37:24Z","pushed_at":"2016-04-27T00:57:50Z","git_url":"git://github.com/janrain/Janrain-Sample-Code.git","ssh_url":"git@github.com:janrain/Janrain-Sample-Code.git","clone_url":"https://github.com/janrain/Janrain-Sample-Code.git","svn_url":"https://github.com/janrain/Janrain-Sample-Code","homepage":"http://janrain.com","size":690,"stargazers_count":78,"watchers_count":78,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":6,"forks":96,"open_issues":6,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23"},"html":{"href":"https://github.com/janrain/Janrain-Sample-Code/pull/23"},"issue":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/23"},"comments":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/janrain/Janrain-Sample-Code/statuses/e5ab0a168431e0d4c3d351ea0fbf03fce5534b23"}}}}