{"action":"created","comment":{"url":"https://api.github.com/repos/auth0/auth0-python/pulls/comments/229457396","pull_request_review_id":169957126,"id":229457396,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTQ1NzM5Ng==","diff_hunk":"@@ -0,0 +1,76 @@\n+from .rest import RestClient\n+\n+\n+class CustomDomains(object):\n+\n+    \"\"\"Auth0 custom domains endpoints\n+\n+    Args:\n+        domain (str): Your Auth0 domain, e.g: 'username.auth0.com'\n+\n+        token (str): Management API v2 Token\n+\n+        telemetry (bool, optional): Enable or disable Telemetry\n+            (defaults to True)\n+    \"\"\"\n+\n+    def __init__(self, domain, token, telemetry=True):\n+        self.domain = domain\n+        self.client = RestClient(jwt=token, telemetry=telemetry)\n+\n+    def _url(self, id=None):\n+        url = 'https://%s/api/v2/custom-domains' % self.domain\n+        if id is not None:\n+            return url + '/' + id\n+        return url\n+\n+    def get_all(self):\n+        \"\"\"Retrieves all custom domains.\n+            \n+        See: https://auth0.com/docs/api/management/v2#!/Custom_Domains/get_custom_domains\n+        \"\"\"\n+\n+        return self.client.get(self._url())\n+\n+    def get_domain_by_id(self, id):\n+        \"\"\"Retrieves custom domain.\n+\n+        See: https://auth0.com/docs/api/management/v2#!/Custom_Domains/get_custom_domains_by_id\n+        \"\"\"\n+        url = self._url('%s' % (id))\n+        return self.client.get(url)\n+\n+    def delete(self, id):\n+        \"\"\"Deletes a grant.\n+\n+        Args:\n+           id (str): The id of the custom domain to delete\n+\n+\n+        See: https://auth0.com/docs/api/management/v2#!/Custom_Domains/delete_custom_domains_by_id\n+        \"\"\"\n+        url = self._url('%s' % (id))\n+        return self.client.delete(url)\n+\n+    def create_new(self, body):\n+        \"\"\"Configure a new custom domain\n+\n+        Args:\n+           body (str): The domain, tye and verification method in json\n+\n+\n+        See: https://auth0.com/docs/api/management/v2#!/Custom_Domains/post_custom_domains\n+        \"\"\"\n+        return self.client.post(self._url(), data=body)\n+\n+    def verify(self, id):\n+        \"\"\"Verify a custom domain\n+\n+        Args:\n+           id (str): The id of the custom domain to delete","path":"auth0/v3/management/custom_domains.py","position":70,"original_position":70,"commit_id":"bbffaaf05047d55f3d1bd47e0e8e2b7861b073f7","original_commit_id":"bbffaaf05047d55f3d1bd47e0e8e2b7861b073f7","user":{"login":"joshcanhelp","id":855223,"node_id":"MDQ6VXNlcjg1NTIyMw==","avatar_url":"https://avatars2.githubusercontent.com/u/855223?v=4","gravatar_id":"","url":"https://api.github.com/users/joshcanhelp","html_url":"https://github.com/joshcanhelp","followers_url":"https://api.github.com/users/joshcanhelp/followers","following_url":"https://api.github.com/users/joshcanhelp/following{/other_user}","gists_url":"https://api.github.com/users/joshcanhelp/gists{/gist_id}","starred_url":"https://api.github.com/users/joshcanhelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshcanhelp/subscriptions","organizations_url":"https://api.github.com/users/joshcanhelp/orgs","repos_url":"https://api.github.com/users/joshcanhelp/repos","events_url":"https://api.github.com/users/joshcanhelp/events{/privacy}","received_events_url":"https://api.github.com/users/joshcanhelp/received_events","type":"User","site_admin":false},"body":"> The ID of the custom domain to verify","created_at":"2018-10-30T19:41:25Z","updated_at":"2018-10-30T19:54:12Z","html_url":"https://github.com/auth0/auth0-python/pull/160#discussion_r229457396","pull_request_url":"https://api.github.com/repos/auth0/auth0-python/pulls/160","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/comments/229457396"},"html":{"href":"https://github.com/auth0/auth0-python/pull/160#discussion_r229457396"},"pull_request":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/auth0/auth0-python/pulls/160","id":225467156,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDY3MTU2","html_url":"https://github.com/auth0/auth0-python/pull/160","diff_url":"https://github.com/auth0/auth0-python/pull/160.diff","patch_url":"https://github.com/auth0/auth0-python/pull/160.patch","issue_url":"https://api.github.com/repos/auth0/auth0-python/issues/160","number":160,"state":"open","locked":false,"title":"Added  grants and custom domains","user":{"login":"rubelw","id":732701,"node_id":"MDQ6VXNlcjczMjcwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/732701?v=4","gravatar_id":"","url":"https://api.github.com/users/rubelw","html_url":"https://github.com/rubelw","followers_url":"https://api.github.com/users/rubelw/followers","following_url":"https://api.github.com/users/rubelw/following{/other_user}","gists_url":"https://api.github.com/users/rubelw/gists{/gist_id}","starred_url":"https://api.github.com/users/rubelw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubelw/subscriptions","organizations_url":"https://api.github.com/users/rubelw/orgs","repos_url":"https://api.github.com/users/rubelw/repos","events_url":"https://api.github.com/users/rubelw/events{/privacy}","received_events_url":"https://api.github.com/users/rubelw/received_events","type":"User","site_admin":false},"body":"Added method and unit test for Guardian SNS factor provider configuration and also added a bash script called clean.sh to clean-up any files before a commit.  This helps developers like myself to clean things up before requesting a merge","created_at":"2018-10-24T16:17:16Z","updated_at":"2018-10-30T19:54:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0c12bedcb0916d3a3ef688670061b62f69fdf6a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/auth0/auth0-python/pulls/160/commits","review_comments_url":"https://api.github.com/repos/auth0/auth0-python/pulls/160/comments","review_comment_url":"https://api.github.com/repos/auth0/auth0-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auth0/auth0-python/issues/160/comments","statuses_url":"https://api.github.com/repos/auth0/auth0-python/statuses/bbffaaf05047d55f3d1bd47e0e8e2b7861b073f7","head":{"label":"rubelw:master","ref":"master","sha":"bbffaaf05047d55f3d1bd47e0e8e2b7861b073f7","user":{"login":"rubelw","id":732701,"node_id":"MDQ6VXNlcjczMjcwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/732701?v=4","gravatar_id":"","url":"https://api.github.com/users/rubelw","html_url":"https://github.com/rubelw","followers_url":"https://api.github.com/users/rubelw/followers","following_url":"https://api.github.com/users/rubelw/following{/other_user}","gists_url":"https://api.github.com/users/rubelw/gists{/gist_id}","starred_url":"https://api.github.com/users/rubelw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubelw/subscriptions","organizations_url":"https://api.github.com/users/rubelw/orgs","repos_url":"https://api.github.com/users/rubelw/repos","events_url":"https://api.github.com/users/rubelw/events{/privacy}","received_events_url":"https://api.github.com/users/rubelw/received_events","type":"User","site_admin":false},"repo":{"id":154526782,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ1MjY3ODI=","name":"auth0-python","full_name":"rubelw/auth0-python","private":false,"owner":{"login":"rubelw","id":732701,"node_id":"MDQ6VXNlcjczMjcwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/732701?v=4","gravatar_id":"","url":"https://api.github.com/users/rubelw","html_url":"https://github.com/rubelw","followers_url":"https://api.github.com/users/rubelw/followers","following_url":"https://api.github.com/users/rubelw/following{/other_user}","gists_url":"https://api.github.com/users/rubelw/gists{/gist_id}","starred_url":"https://api.github.com/users/rubelw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubelw/subscriptions","organizations_url":"https://api.github.com/users/rubelw/orgs","repos_url":"https://api.github.com/users/rubelw/repos","events_url":"https://api.github.com/users/rubelw/events{/privacy}","received_events_url":"https://api.github.com/users/rubelw/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rubelw/auth0-python","description":"All information regarding using Auth0 with Python","fork":true,"url":"https://api.github.com/repos/rubelw/auth0-python","forks_url":"https://api.github.com/repos/rubelw/auth0-python/forks","keys_url":"https://api.github.com/repos/rubelw/auth0-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubelw/auth0-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubelw/auth0-python/teams","hooks_url":"https://api.github.com/repos/rubelw/auth0-python/hooks","issue_events_url":"https://api.github.com/repos/rubelw/auth0-python/issues/events{/number}","events_url":"https://api.github.com/repos/rubelw/auth0-python/events","assignees_url":"https://api.github.com/repos/rubelw/auth0-python/assignees{/user}","branches_url":"https://api.github.com/repos/rubelw/auth0-python/branches{/branch}","tags_url":"https://api.github.com/repos/rubelw/auth0-python/tags","blobs_url":"https://api.github.com/repos/rubelw/auth0-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubelw/auth0-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubelw/auth0-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubelw/auth0-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubelw/auth0-python/statuses/{sha}","languages_url":"https://api.github.com/repos/rubelw/auth0-python/languages","stargazers_url":"https://api.github.com/repos/rubelw/auth0-python/stargazers","contributors_url":"https://api.github.com/repos/rubelw/auth0-python/contributors","subscribers_url":"https://api.github.com/repos/rubelw/auth0-python/subscribers","subscription_url":"https://api.github.com/repos/rubelw/auth0-python/subscription","commits_url":"https://api.github.com/repos/rubelw/auth0-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubelw/auth0-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubelw/auth0-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubelw/auth0-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubelw/auth0-python/contents/{+path}","compare_url":"https://api.github.com/repos/rubelw/auth0-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubelw/auth0-python/merges","archive_url":"https://api.github.com/repos/rubelw/auth0-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubelw/auth0-python/downloads","issues_url":"https://api.github.com/repos/rubelw/auth0-python/issues{/number}","pulls_url":"https://api.github.com/repos/rubelw/auth0-python/pulls{/number}","milestones_url":"https://api.github.com/repos/rubelw/auth0-python/milestones{/number}","notifications_url":"https://api.github.com/repos/rubelw/auth0-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubelw/auth0-python/labels{/name}","releases_url":"https://api.github.com/repos/rubelw/auth0-python/releases{/id}","deployments_url":"https://api.github.com/repos/rubelw/auth0-python/deployments","created_at":"2018-10-24T15:40:55Z","updated_at":"2018-10-26T14:42:03Z","pushed_at":"2018-10-26T14:42:02Z","git_url":"git://github.com/rubelw/auth0-python.git","ssh_url":"git@github.com:rubelw/auth0-python.git","clone_url":"https://github.com/rubelw/auth0-python.git","svn_url":"https://github.com/rubelw/auth0-python","homepage":null,"size":427,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"auth0:master","ref":"master","sha":"2bdd9008b0124b53360c79dd299331a8190d95f9","user":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"repo":{"id":22433990,"node_id":"MDEwOlJlcG9zaXRvcnkyMjQzMzk5MA==","name":"auth0-python","full_name":"auth0/auth0-python","private":false,"owner":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/auth0/auth0-python","description":"All information regarding using Auth0 with Python","fork":false,"url":"https://api.github.com/repos/auth0/auth0-python","forks_url":"https://api.github.com/repos/auth0/auth0-python/forks","keys_url":"https://api.github.com/repos/auth0/auth0-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auth0/auth0-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auth0/auth0-python/teams","hooks_url":"https://api.github.com/repos/auth0/auth0-python/hooks","issue_events_url":"https://api.github.com/repos/auth0/auth0-python/issues/events{/number}","events_url":"https://api.github.com/repos/auth0/auth0-python/events","assignees_url":"https://api.github.com/repos/auth0/auth0-python/assignees{/user}","branches_url":"https://api.github.com/repos/auth0/auth0-python/branches{/branch}","tags_url":"https://api.github.com/repos/auth0/auth0-python/tags","blobs_url":"https://api.github.com/repos/auth0/auth0-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auth0/auth0-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auth0/auth0-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/auth0/auth0-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auth0/auth0-python/statuses/{sha}","languages_url":"https://api.github.com/repos/auth0/auth0-python/languages","stargazers_url":"https://api.github.com/repos/auth0/auth0-python/stargazers","contributors_url":"https://api.github.com/repos/auth0/auth0-python/contributors","subscribers_url":"https://api.github.com/repos/auth0/auth0-python/subscribers","subscription_url":"https://api.github.com/repos/auth0/auth0-python/subscription","commits_url":"https://api.github.com/repos/auth0/auth0-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/auth0/auth0-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/auth0/auth0-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/auth0/auth0-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/auth0/auth0-python/contents/{+path}","compare_url":"https://api.github.com/repos/auth0/auth0-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auth0/auth0-python/merges","archive_url":"https://api.github.com/repos/auth0/auth0-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auth0/auth0-python/downloads","issues_url":"https://api.github.com/repos/auth0/auth0-python/issues{/number}","pulls_url":"https://api.github.com/repos/auth0/auth0-python/pulls{/number}","milestones_url":"https://api.github.com/repos/auth0/auth0-python/milestones{/number}","notifications_url":"https://api.github.com/repos/auth0/auth0-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auth0/auth0-python/labels{/name}","releases_url":"https://api.github.com/repos/auth0/auth0-python/releases{/id}","deployments_url":"https://api.github.com/repos/auth0/auth0-python/deployments","created_at":"2014-07-30T15:38:33Z","updated_at":"2018-10-29T14:17:52Z","pushed_at":"2018-10-26T19:15:57Z","git_url":"git://github.com/auth0/auth0-python.git","ssh_url":"git@github.com:auth0/auth0-python.git","clone_url":"https://github.com/auth0/auth0-python.git","svn_url":"https://github.com/auth0/auth0-python","homepage":null,"size":398,"stargazers_count":123,"watchers_count":123,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":81,"open_issues":36,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/160"},"html":{"href":"https://github.com/auth0/auth0-python/pull/160"},"issue":{"href":"https://api.github.com/repos/auth0/auth0-python/issues/160"},"comments":{"href":"https://api.github.com/repos/auth0/auth0-python/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auth0/auth0-python/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/auth0/auth0-python/statuses/bbffaaf05047d55f3d1bd47e0e8e2b7861b073f7"}},"author_association":"NONE"}}
{"actor":{"display_login":"joshcanhelp"}}