{"action":"created","comment":{"url":"https://api.github.com/repos/twilio/twilio-java/pulls/comments/100648923","pull_request_review_id":21368019,"id":100648923,"diff_hunk":"@@ -0,0 +1,73 @@\n+package com.twilio.jwt.accesstoken;\n+\n+/**\n+ * Grant used to access Twilio TaskRouter.\n+ *\n+ * <p>\n+ *     For more information see:\n+ *     <a href=\"https://www.twilio.com/docs/api/rest/access-tokens\">\n+ *         https://www.twilio.com/docs/api/rest/access-tokens\n+ *     </a>\n+ * </p>\n+ */\n+public class TaskRouterGrant implements Grant {\n+\n+    private String workspaceSid;\n+    private String workerSid;\n+    private String role;","path":"src/main/java/com/twilio/jwt/accesstoken/TaskRouterGrant.java","position":17,"original_position":17,"commit_id":"391c4d47550daab5baea83b3162bbccd44637c75","original_commit_id":"391c4d47550daab5baea83b3162bbccd44637c75","user":{"login":"wanjunsli","id":2490254,"avatar_url":"https://avatars.githubusercontent.com/u/2490254?v=3","gravatar_id":"","url":"https://api.github.com/users/wanjunsli","html_url":"https://github.com/wanjunsli","followers_url":"https://api.github.com/users/wanjunsli/followers","following_url":"https://api.github.com/users/wanjunsli/following{/other_user}","gists_url":"https://api.github.com/users/wanjunsli/gists{/gist_id}","starred_url":"https://api.github.com/users/wanjunsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanjunsli/subscriptions","organizations_url":"https://api.github.com/users/wanjunsli/orgs","repos_url":"https://api.github.com/users/wanjunsli/repos","events_url":"https://api.github.com/users/wanjunsli/events{/privacy}","received_events_url":"https://api.github.com/users/wanjunsli/received_events","type":"User","site_admin":false},"body":"The role defines which TaskRouter endpoints are allowed.\r\n\r\nCurrently we have just a Worker JS SDK, who upon initialization specifies in the grant a role=\"worker\". \r\n\r\nOur future Workspace SDK will have the role=\"workspace\" who has different endpoints than the role=\"worker\". ","created_at":"2017-02-11T00:06:40Z","updated_at":"2017-02-11T00:06:40Z","html_url":"https://github.com/twilio/twilio-java/pull/329#discussion_r100648923","pull_request_url":"https://api.github.com/repos/twilio/twilio-java/pulls/329","_links":{"self":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/comments/100648923"},"html":{"href":"https://github.com/twilio/twilio-java/pull/329#discussion_r100648923"},"pull_request":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/329"}}},"pull_request":{"url":"https://api.github.com/repos/twilio/twilio-java/pulls/329","id":105506278,"html_url":"https://github.com/twilio/twilio-java/pull/329","diff_url":"https://github.com/twilio/twilio-java/pull/329.diff","patch_url":"https://github.com/twilio/twilio-java/pull/329.patch","issue_url":"https://api.github.com/repos/twilio/twilio-java/issues/329","number":329,"state":"closed","locked":false,"title":"Adding TaskRouter grant","user":{"login":"wanjunsli","id":2490254,"avatar_url":"https://avatars.githubusercontent.com/u/2490254?v=3","gravatar_id":"","url":"https://api.github.com/users/wanjunsli","html_url":"https://github.com/wanjunsli","followers_url":"https://api.github.com/users/wanjunsli/followers","following_url":"https://api.github.com/users/wanjunsli/following{/other_user}","gists_url":"https://api.github.com/users/wanjunsli/gists{/gist_id}","starred_url":"https://api.github.com/users/wanjunsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanjunsli/subscriptions","organizations_url":"https://api.github.com/users/wanjunsli/orgs","repos_url":"https://api.github.com/users/wanjunsli/repos","events_url":"https://api.github.com/users/wanjunsli/events{/privacy}","received_events_url":"https://api.github.com/users/wanjunsli/received_events","type":"User","site_admin":false},"body":"Creating a TaskRouter grant. ","created_at":"2017-02-09T20:24:05Z","updated_at":"2017-02-11T00:06:40Z","closed_at":"2017-02-10T19:37:04Z","merged_at":"2017-02-10T19:37:04Z","merge_commit_sha":"e2821b2b4372886b01c4007ce048ac98533755e7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/twilio/twilio-java/pulls/329/commits","review_comments_url":"https://api.github.com/repos/twilio/twilio-java/pulls/329/comments","review_comment_url":"https://api.github.com/repos/twilio/twilio-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twilio/twilio-java/issues/329/comments","statuses_url":"https://api.github.com/repos/twilio/twilio-java/statuses/391c4d47550daab5baea83b3162bbccd44637c75","head":{"label":"wanjunsli:taskrouter-grant","ref":"taskrouter-grant","sha":"391c4d47550daab5baea83b3162bbccd44637c75","user":{"login":"wanjunsli","id":2490254,"avatar_url":"https://avatars.githubusercontent.com/u/2490254?v=3","gravatar_id":"","url":"https://api.github.com/users/wanjunsli","html_url":"https://github.com/wanjunsli","followers_url":"https://api.github.com/users/wanjunsli/followers","following_url":"https://api.github.com/users/wanjunsli/following{/other_user}","gists_url":"https://api.github.com/users/wanjunsli/gists{/gist_id}","starred_url":"https://api.github.com/users/wanjunsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanjunsli/subscriptions","organizations_url":"https://api.github.com/users/wanjunsli/orgs","repos_url":"https://api.github.com/users/wanjunsli/repos","events_url":"https://api.github.com/users/wanjunsli/events{/privacy}","received_events_url":"https://api.github.com/users/wanjunsli/received_events","type":"User","site_admin":false},"repo":{"id":48456189,"name":"twilio-java","full_name":"wanjunsli/twilio-java","owner":{"login":"wanjunsli","id":2490254,"avatar_url":"https://avatars.githubusercontent.com/u/2490254?v=3","gravatar_id":"","url":"https://api.github.com/users/wanjunsli","html_url":"https://github.com/wanjunsli","followers_url":"https://api.github.com/users/wanjunsli/followers","following_url":"https://api.github.com/users/wanjunsli/following{/other_user}","gists_url":"https://api.github.com/users/wanjunsli/gists{/gist_id}","starred_url":"https://api.github.com/users/wanjunsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanjunsli/subscriptions","organizations_url":"https://api.github.com/users/wanjunsli/orgs","repos_url":"https://api.github.com/users/wanjunsli/repos","events_url":"https://api.github.com/users/wanjunsli/events{/privacy}","received_events_url":"https://api.github.com/users/wanjunsli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wanjunsli/twilio-java","description":"A Java library for communicating with the Twilio REST API and generating TwiML. Need help? E-mail us at help@twilio.com","fork":true,"url":"https://api.github.com/repos/wanjunsli/twilio-java","forks_url":"https://api.github.com/repos/wanjunsli/twilio-java/forks","keys_url":"https://api.github.com/repos/wanjunsli/twilio-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wanjunsli/twilio-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wanjunsli/twilio-java/teams","hooks_url":"https://api.github.com/repos/wanjunsli/twilio-java/hooks","issue_events_url":"https://api.github.com/repos/wanjunsli/twilio-java/issues/events{/number}","events_url":"https://api.github.com/repos/wanjunsli/twilio-java/events","assignees_url":"https://api.github.com/repos/wanjunsli/twilio-java/assignees{/user}","branches_url":"https://api.github.com/repos/wanjunsli/twilio-java/branches{/branch}","tags_url":"https://api.github.com/repos/wanjunsli/twilio-java/tags","blobs_url":"https://api.github.com/repos/wanjunsli/twilio-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wanjunsli/twilio-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wanjunsli/twilio-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/wanjunsli/twilio-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wanjunsli/twilio-java/statuses/{sha}","languages_url":"https://api.github.com/repos/wanjunsli/twilio-java/languages","stargazers_url":"https://api.github.com/repos/wanjunsli/twilio-java/stargazers","contributors_url":"https://api.github.com/repos/wanjunsli/twilio-java/contributors","subscribers_url":"https://api.github.com/repos/wanjunsli/twilio-java/subscribers","subscription_url":"https://api.github.com/repos/wanjunsli/twilio-java/subscription","commits_url":"https://api.github.com/repos/wanjunsli/twilio-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/wanjunsli/twilio-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/wanjunsli/twilio-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/wanjunsli/twilio-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/wanjunsli/twilio-java/contents/{+path}","compare_url":"https://api.github.com/repos/wanjunsli/twilio-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wanjunsli/twilio-java/merges","archive_url":"https://api.github.com/repos/wanjunsli/twilio-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wanjunsli/twilio-java/downloads","issues_url":"https://api.github.com/repos/wanjunsli/twilio-java/issues{/number}","pulls_url":"https://api.github.com/repos/wanjunsli/twilio-java/pulls{/number}","milestones_url":"https://api.github.com/repos/wanjunsli/twilio-java/milestones{/number}","notifications_url":"https://api.github.com/repos/wanjunsli/twilio-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wanjunsli/twilio-java/labels{/name}","releases_url":"https://api.github.com/repos/wanjunsli/twilio-java/releases{/id}","deployments_url":"https://api.github.com/repos/wanjunsli/twilio-java/deployments","created_at":"2015-12-22T22:04:27Z","updated_at":"2016-01-27T04:17:39Z","pushed_at":"2017-02-09T20:22:19Z","git_url":"git://github.com/wanjunsli/twilio-java.git","ssh_url":"git@github.com:wanjunsli/twilio-java.git","clone_url":"https://github.com/wanjunsli/twilio-java.git","svn_url":"https://github.com/wanjunsli/twilio-java","homepage":"http://www.twilio.com","size":28550,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"twilio:master","ref":"master","sha":"48a177a7ff68f6b14c7e3a35fabe394c6605b0a8","user":{"login":"twilio","id":109142,"avatar_url":"https://avatars.githubusercontent.com/u/109142?v=3","gravatar_id":"","url":"https://api.github.com/users/twilio","html_url":"https://github.com/twilio","followers_url":"https://api.github.com/users/twilio/followers","following_url":"https://api.github.com/users/twilio/following{/other_user}","gists_url":"https://api.github.com/users/twilio/gists{/gist_id}","starred_url":"https://api.github.com/users/twilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twilio/subscriptions","organizations_url":"https://api.github.com/users/twilio/orgs","repos_url":"https://api.github.com/users/twilio/repos","events_url":"https://api.github.com/users/twilio/events{/privacy}","received_events_url":"https://api.github.com/users/twilio/received_events","type":"Organization","site_admin":false},"repo":{"id":307476,"name":"twilio-java","full_name":"twilio/twilio-java","owner":{"login":"twilio","id":109142,"avatar_url":"https://avatars.githubusercontent.com/u/109142?v=3","gravatar_id":"","url":"https://api.github.com/users/twilio","html_url":"https://github.com/twilio","followers_url":"https://api.github.com/users/twilio/followers","following_url":"https://api.github.com/users/twilio/following{/other_user}","gists_url":"https://api.github.com/users/twilio/gists{/gist_id}","starred_url":"https://api.github.com/users/twilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twilio/subscriptions","organizations_url":"https://api.github.com/users/twilio/orgs","repos_url":"https://api.github.com/users/twilio/repos","events_url":"https://api.github.com/users/twilio/events{/privacy}","received_events_url":"https://api.github.com/users/twilio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twilio/twilio-java","description":"A Java library for communicating with the Twilio REST API and generating TwiML.","fork":false,"url":"https://api.github.com/repos/twilio/twilio-java","forks_url":"https://api.github.com/repos/twilio/twilio-java/forks","keys_url":"https://api.github.com/repos/twilio/twilio-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twilio/twilio-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twilio/twilio-java/teams","hooks_url":"https://api.github.com/repos/twilio/twilio-java/hooks","issue_events_url":"https://api.github.com/repos/twilio/twilio-java/issues/events{/number}","events_url":"https://api.github.com/repos/twilio/twilio-java/events","assignees_url":"https://api.github.com/repos/twilio/twilio-java/assignees{/user}","branches_url":"https://api.github.com/repos/twilio/twilio-java/branches{/branch}","tags_url":"https://api.github.com/repos/twilio/twilio-java/tags","blobs_url":"https://api.github.com/repos/twilio/twilio-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twilio/twilio-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twilio/twilio-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/twilio/twilio-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twilio/twilio-java/statuses/{sha}","languages_url":"https://api.github.com/repos/twilio/twilio-java/languages","stargazers_url":"https://api.github.com/repos/twilio/twilio-java/stargazers","contributors_url":"https://api.github.com/repos/twilio/twilio-java/contributors","subscribers_url":"https://api.github.com/repos/twilio/twilio-java/subscribers","subscription_url":"https://api.github.com/repos/twilio/twilio-java/subscription","commits_url":"https://api.github.com/repos/twilio/twilio-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/twilio/twilio-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/twilio/twilio-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/twilio/twilio-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/twilio/twilio-java/contents/{+path}","compare_url":"https://api.github.com/repos/twilio/twilio-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twilio/twilio-java/merges","archive_url":"https://api.github.com/repos/twilio/twilio-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twilio/twilio-java/downloads","issues_url":"https://api.github.com/repos/twilio/twilio-java/issues{/number}","pulls_url":"https://api.github.com/repos/twilio/twilio-java/pulls{/number}","milestones_url":"https://api.github.com/repos/twilio/twilio-java/milestones{/number}","notifications_url":"https://api.github.com/repos/twilio/twilio-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twilio/twilio-java/labels{/name}","releases_url":"https://api.github.com/repos/twilio/twilio-java/releases{/id}","deployments_url":"https://api.github.com/repos/twilio/twilio-java/deployments","created_at":"2009-09-15T06:04:28Z","updated_at":"2017-02-10T08:29:17Z","pushed_at":"2017-02-10T23:42:18Z","git_url":"git://github.com/twilio/twilio-java.git","ssh_url":"git@github.com:twilio/twilio-java.git","clone_url":"https://github.com/twilio/twilio-java.git","svn_url":"https://github.com/twilio/twilio-java","homepage":"https://www.twilio.com/docs/libraries/java","size":23341,"stargazers_count":245,"watchers_count":245,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":206,"mirror_url":null,"open_issues_count":11,"forks":206,"open_issues":11,"watchers":245,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/329"},"html":{"href":"https://github.com/twilio/twilio-java/pull/329"},"issue":{"href":"https://api.github.com/repos/twilio/twilio-java/issues/329"},"comments":{"href":"https://api.github.com/repos/twilio/twilio-java/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twilio/twilio-java/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/twilio/twilio-java/statuses/391c4d47550daab5baea83b3162bbccd44637c75"}}}}
{"actor":{"display_login":"wanjunsli"}}