{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/PyFxA/pulls/comments/48938401","id":48938401,"diff_hunk":"@@ -0,0 +1,205 @@\n+#!/usr/bin/env python\n+from __future__ import print_function\n+import argparse\n+import getpass\n+import os\n+import re\n+import sys\n+\n+from fxa.errors import ClientError\n+from fxa.tools.bearer import get_bearer_token\n+from fxa.tools.browserid import get_browserid_assertion\n+from fxa.tools.fxa import create_new_fxa_account\n+\n+FXA_API_URL = \"https://api-accounts.stage.mozaws.net/v1\"\n+FXA_OAUTH_URL = \"https://oauth.stage.mozaws.net/v1\"","path":"fxa/__main__.py","position":15,"original_position":15,"commit_id":"0fb38722ac838486de25cca05fee527ef8164f64","original_commit_id":"0fb38722ac838486de25cca05fee527ef8164f64","user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"body":"Agreed","created_at":"2016-01-06T09:07:10Z","updated_at":"2016-01-06T09:07:10Z","html_url":"https://github.com/mozilla/PyFxA/pull/36#discussion_r48938401","pull_request_url":"https://api.github.com/repos/mozilla/PyFxA/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/comments/48938401"},"html":{"href":"https://github.com/mozilla/PyFxA/pull/36#discussion_r48938401"},"pull_request":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/PyFxA/pulls/36","id":54282767,"html_url":"https://github.com/mozilla/PyFxA/pull/36","diff_url":"https://github.com/mozilla/PyFxA/pull/36.diff","patch_url":"https://github.com/mozilla/PyFxA/pull/36.patch","issue_url":"https://api.github.com/repos/mozilla/PyFxA/issues/36","number":36,"state":"open","locked":false,"title":"Create tooling function and use them in plugins and CLI tools.","user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-21T17:38:40Z","updated_at":"2016-01-06T09:07:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39cd75ec75a64a6d11bd32632f7aae89a11aa64f","assignee":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/PyFxA/milestones/7","html_url":"https://github.com/mozilla/PyFxA/milestones/FxA-0:%20quality","labels_url":"https://api.github.com/repos/mozilla/PyFxA/milestones/7/labels","id":1265691,"number":7,"title":"FxA-0: quality","description":"An ongoing milestone into which we can schedule maintenance tasks, tech-debt paydown, and other code-quality-related issues.","creator":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-08-21T02:50:15Z","updated_at":"2015-12-29T21:50:20Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mozilla/PyFxA/pulls/36/commits","review_comments_url":"https://api.github.com/repos/mozilla/PyFxA/pulls/36/comments","review_comment_url":"https://api.github.com/repos/mozilla/PyFxA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/PyFxA/issues/36/comments","statuses_url":"https://api.github.com/repos/mozilla/PyFxA/statuses/0fb38722ac838486de25cca05fee527ef8164f64","head":{"label":"mozilla:loadtest-tools","ref":"loadtest-tools","sha":"0fb38722ac838486de25cca05fee527ef8164f64","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":26752147,"name":"PyFxA","full_name":"mozilla/PyFxA","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/PyFxA","description":"Python library for interacting with the Firefox Accounts ecosystem","fork":false,"url":"https://api.github.com/repos/mozilla/PyFxA","forks_url":"https://api.github.com/repos/mozilla/PyFxA/forks","keys_url":"https://api.github.com/repos/mozilla/PyFxA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/PyFxA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/PyFxA/teams","hooks_url":"https://api.github.com/repos/mozilla/PyFxA/hooks","issue_events_url":"https://api.github.com/repos/mozilla/PyFxA/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/PyFxA/events","assignees_url":"https://api.github.com/repos/mozilla/PyFxA/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/PyFxA/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/PyFxA/tags","blobs_url":"https://api.github.com/repos/mozilla/PyFxA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/PyFxA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/PyFxA/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/PyFxA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/PyFxA/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/PyFxA/languages","stargazers_url":"https://api.github.com/repos/mozilla/PyFxA/stargazers","contributors_url":"https://api.github.com/repos/mozilla/PyFxA/contributors","subscribers_url":"https://api.github.com/repos/mozilla/PyFxA/subscribers","subscription_url":"https://api.github.com/repos/mozilla/PyFxA/subscription","commits_url":"https://api.github.com/repos/mozilla/PyFxA/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/PyFxA/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/PyFxA/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/PyFxA/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/PyFxA/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/PyFxA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/PyFxA/merges","archive_url":"https://api.github.com/repos/mozilla/PyFxA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/PyFxA/downloads","issues_url":"https://api.github.com/repos/mozilla/PyFxA/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/PyFxA/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/PyFxA/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/PyFxA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/PyFxA/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/PyFxA/releases{/id}","created_at":"2014-11-17T10:41:40Z","updated_at":"2015-12-23T12:27:10Z","pushed_at":"2015-12-22T19:14:43Z","git_url":"git://github.com/mozilla/PyFxA.git","ssh_url":"git@github.com:mozilla/PyFxA.git","clone_url":"https://github.com/mozilla/PyFxA.git","svn_url":"https://github.com/mozilla/PyFxA","homepage":null,"size":112,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":4,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"f3b0905ea339c892b52baf0e1024cbd1976abb3a","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":26752147,"name":"PyFxA","full_name":"mozilla/PyFxA","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/PyFxA","description":"Python library for interacting with the Firefox Accounts ecosystem","fork":false,"url":"https://api.github.com/repos/mozilla/PyFxA","forks_url":"https://api.github.com/repos/mozilla/PyFxA/forks","keys_url":"https://api.github.com/repos/mozilla/PyFxA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/PyFxA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/PyFxA/teams","hooks_url":"https://api.github.com/repos/mozilla/PyFxA/hooks","issue_events_url":"https://api.github.com/repos/mozilla/PyFxA/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/PyFxA/events","assignees_url":"https://api.github.com/repos/mozilla/PyFxA/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/PyFxA/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/PyFxA/tags","blobs_url":"https://api.github.com/repos/mozilla/PyFxA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/PyFxA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/PyFxA/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/PyFxA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/PyFxA/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/PyFxA/languages","stargazers_url":"https://api.github.com/repos/mozilla/PyFxA/stargazers","contributors_url":"https://api.github.com/repos/mozilla/PyFxA/contributors","subscribers_url":"https://api.github.com/repos/mozilla/PyFxA/subscribers","subscription_url":"https://api.github.com/repos/mozilla/PyFxA/subscription","commits_url":"https://api.github.com/repos/mozilla/PyFxA/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/PyFxA/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/PyFxA/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/PyFxA/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/PyFxA/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/PyFxA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/PyFxA/merges","archive_url":"https://api.github.com/repos/mozilla/PyFxA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/PyFxA/downloads","issues_url":"https://api.github.com/repos/mozilla/PyFxA/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/PyFxA/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/PyFxA/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/PyFxA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/PyFxA/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/PyFxA/releases{/id}","created_at":"2014-11-17T10:41:40Z","updated_at":"2015-12-23T12:27:10Z","pushed_at":"2015-12-22T19:14:43Z","git_url":"git://github.com/mozilla/PyFxA.git","ssh_url":"git@github.com:mozilla/PyFxA.git","clone_url":"https://github.com/mozilla/PyFxA.git","svn_url":"https://github.com/mozilla/PyFxA","homepage":null,"size":112,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/36"},"html":{"href":"https://github.com/mozilla/PyFxA/pull/36"},"issue":{"href":"https://api.github.com/repos/mozilla/PyFxA/issues/36"},"comments":{"href":"https://api.github.com/repos/mozilla/PyFxA/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/PyFxA/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/PyFxA/statuses/0fb38722ac838486de25cca05fee527ef8164f64"}}}}