{"action":"opened","number":284,"pull_request":{"url":"https://api.github.com/repos/NetSweet/netsuite/pulls/284","id":81825824,"html_url":"https://github.com/NetSweet/netsuite/pull/284","diff_url":"https://github.com/NetSweet/netsuite/pull/284.diff","patch_url":"https://github.com/NetSweet/netsuite/pull/284.patch","issue_url":"https://api.github.com/repos/NetSweet/netsuite/issues/284","number":284,"state":"open","locked":false,"title":"WIP - Support pulling roles, WSDL, and account_ids using only email and password","user":{"login":"davidlaprade","id":7997618,"avatar_url":"https://avatars.githubusercontent.com/u/7997618?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlaprade","html_url":"https://github.com/davidlaprade","followers_url":"https://api.github.com/users/davidlaprade/followers","following_url":"https://api.github.com/users/davidlaprade/following{/other_user}","gists_url":"https://api.github.com/users/davidlaprade/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlaprade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlaprade/subscriptions","organizations_url":"https://api.github.com/users/davidlaprade/orgs","repos_url":"https://api.github.com/users/davidlaprade/repos","events_url":"https://api.github.com/users/davidlaprade/events{/privacy}","received_events_url":"https://api.github.com/users/davidlaprade/received_events","type":"User","site_admin":false},"body":"@iloveitaly This is a work in progress/proof of concept. Just throwing it up here to get feedback on the approach, architecture, etc!\r\n\r\nUsage:\r\n\r\n```ruby\r\nNetSuite::Rest::Utilities::Roles.get(\r\n  email: NetSuite::Configuration.email,\r\n  password: NetSuite::Configuration.password\r\n)\r\n=> {\r\n  :accounts=>[\"TSTDRV15\"],\r\n :roles=>[3, 1074, 1, 46],\r\n :wsdls=>[\"https://webservices.na1.netsuite.com\"]\r\n}\r\n```\r\n\r\nStill needs tests, and error handling.","created_at":"2016-08-18T14:30:01Z","updated_at":"2016-08-18T14:30:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"868122f11e840b49c881fec5846c158cff784b6f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NetSweet/netsuite/pulls/284/commits","review_comments_url":"https://api.github.com/repos/NetSweet/netsuite/pulls/284/comments","review_comment_url":"https://api.github.com/repos/NetSweet/netsuite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NetSweet/netsuite/issues/284/comments","statuses_url":"https://api.github.com/repos/NetSweet/netsuite/statuses/e17024b08bff8b347e7601fbe39236a7f92a3dce","head":{"label":"davidlaprade:rest-roles","ref":"rest-roles","sha":"e17024b08bff8b347e7601fbe39236a7f92a3dce","user":{"login":"davidlaprade","id":7997618,"avatar_url":"https://avatars.githubusercontent.com/u/7997618?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlaprade","html_url":"https://github.com/davidlaprade","followers_url":"https://api.github.com/users/davidlaprade/followers","following_url":"https://api.github.com/users/davidlaprade/following{/other_user}","gists_url":"https://api.github.com/users/davidlaprade/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlaprade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlaprade/subscriptions","organizations_url":"https://api.github.com/users/davidlaprade/orgs","repos_url":"https://api.github.com/users/davidlaprade/repos","events_url":"https://api.github.com/users/davidlaprade/events{/privacy}","received_events_url":"https://api.github.com/users/davidlaprade/received_events","type":"User","site_admin":false},"repo":{"id":60922633,"name":"netsuite","full_name":"davidlaprade/netsuite","owner":{"login":"davidlaprade","id":7997618,"avatar_url":"https://avatars.githubusercontent.com/u/7997618?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlaprade","html_url":"https://github.com/davidlaprade","followers_url":"https://api.github.com/users/davidlaprade/followers","following_url":"https://api.github.com/users/davidlaprade/following{/other_user}","gists_url":"https://api.github.com/users/davidlaprade/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlaprade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlaprade/subscriptions","organizations_url":"https://api.github.com/users/davidlaprade/orgs","repos_url":"https://api.github.com/users/davidlaprade/repos","events_url":"https://api.github.com/users/davidlaprade/events{/privacy}","received_events_url":"https://api.github.com/users/davidlaprade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidlaprade/netsuite","description":"NetSuite SuiteTalk API Wrapper","fork":true,"url":"https://api.github.com/repos/davidlaprade/netsuite","forks_url":"https://api.github.com/repos/davidlaprade/netsuite/forks","keys_url":"https://api.github.com/repos/davidlaprade/netsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidlaprade/netsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidlaprade/netsuite/teams","hooks_url":"https://api.github.com/repos/davidlaprade/netsuite/hooks","issue_events_url":"https://api.github.com/repos/davidlaprade/netsuite/issues/events{/number}","events_url":"https://api.github.com/repos/davidlaprade/netsuite/events","assignees_url":"https://api.github.com/repos/davidlaprade/netsuite/assignees{/user}","branches_url":"https://api.github.com/repos/davidlaprade/netsuite/branches{/branch}","tags_url":"https://api.github.com/repos/davidlaprade/netsuite/tags","blobs_url":"https://api.github.com/repos/davidlaprade/netsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidlaprade/netsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidlaprade/netsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidlaprade/netsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidlaprade/netsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/davidlaprade/netsuite/languages","stargazers_url":"https://api.github.com/repos/davidlaprade/netsuite/stargazers","contributors_url":"https://api.github.com/repos/davidlaprade/netsuite/contributors","subscribers_url":"https://api.github.com/repos/davidlaprade/netsuite/subscribers","subscription_url":"https://api.github.com/repos/davidlaprade/netsuite/subscription","commits_url":"https://api.github.com/repos/davidlaprade/netsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidlaprade/netsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidlaprade/netsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidlaprade/netsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidlaprade/netsuite/contents/{+path}","compare_url":"https://api.github.com/repos/davidlaprade/netsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidlaprade/netsuite/merges","archive_url":"https://api.github.com/repos/davidlaprade/netsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidlaprade/netsuite/downloads","issues_url":"https://api.github.com/repos/davidlaprade/netsuite/issues{/number}","pulls_url":"https://api.github.com/repos/davidlaprade/netsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/davidlaprade/netsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/davidlaprade/netsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidlaprade/netsuite/labels{/name}","releases_url":"https://api.github.com/repos/davidlaprade/netsuite/releases{/id}","deployments_url":"https://api.github.com/repos/davidlaprade/netsuite/deployments","created_at":"2016-06-11T18:46:02Z","updated_at":"2016-06-11T18:46:03Z","pushed_at":"2016-08-18T14:25:20Z","git_url":"git://github.com/davidlaprade/netsuite.git","ssh_url":"git@github.com:davidlaprade/netsuite.git","clone_url":"https://github.com/davidlaprade/netsuite.git","svn_url":"https://github.com/davidlaprade/netsuite","homepage":"http://opensuite-slackin.herokuapp.com","size":1581,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"NetSweet:master","ref":"master","sha":"fa853c05afd60a197d9ddc394f8ed6627ecbce5f","user":{"login":"NetSweet","id":9335632,"avatar_url":"https://avatars.githubusercontent.com/u/9335632?v=3","gravatar_id":"","url":"https://api.github.com/users/NetSweet","html_url":"https://github.com/NetSweet","followers_url":"https://api.github.com/users/NetSweet/followers","following_url":"https://api.github.com/users/NetSweet/following{/other_user}","gists_url":"https://api.github.com/users/NetSweet/gists{/gist_id}","starred_url":"https://api.github.com/users/NetSweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetSweet/subscriptions","organizations_url":"https://api.github.com/users/NetSweet/orgs","repos_url":"https://api.github.com/users/NetSweet/repos","events_url":"https://api.github.com/users/NetSweet/events{/privacy}","received_events_url":"https://api.github.com/users/NetSweet/received_events","type":"Organization","site_admin":false},"repo":{"id":3028718,"name":"netsuite","full_name":"NetSweet/netsuite","owner":{"login":"NetSweet","id":9335632,"avatar_url":"https://avatars.githubusercontent.com/u/9335632?v=3","gravatar_id":"","url":"https://api.github.com/users/NetSweet","html_url":"https://github.com/NetSweet","followers_url":"https://api.github.com/users/NetSweet/followers","following_url":"https://api.github.com/users/NetSweet/following{/other_user}","gists_url":"https://api.github.com/users/NetSweet/gists{/gist_id}","starred_url":"https://api.github.com/users/NetSweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetSweet/subscriptions","organizations_url":"https://api.github.com/users/NetSweet/orgs","repos_url":"https://api.github.com/users/NetSweet/repos","events_url":"https://api.github.com/users/NetSweet/events{/privacy}","received_events_url":"https://api.github.com/users/NetSweet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NetSweet/netsuite","description":"NetSuite SuiteTalk API Wrapper","fork":false,"url":"https://api.github.com/repos/NetSweet/netsuite","forks_url":"https://api.github.com/repos/NetSweet/netsuite/forks","keys_url":"https://api.github.com/repos/NetSweet/netsuite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NetSweet/netsuite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NetSweet/netsuite/teams","hooks_url":"https://api.github.com/repos/NetSweet/netsuite/hooks","issue_events_url":"https://api.github.com/repos/NetSweet/netsuite/issues/events{/number}","events_url":"https://api.github.com/repos/NetSweet/netsuite/events","assignees_url":"https://api.github.com/repos/NetSweet/netsuite/assignees{/user}","branches_url":"https://api.github.com/repos/NetSweet/netsuite/branches{/branch}","tags_url":"https://api.github.com/repos/NetSweet/netsuite/tags","blobs_url":"https://api.github.com/repos/NetSweet/netsuite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NetSweet/netsuite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NetSweet/netsuite/git/refs{/sha}","trees_url":"https://api.github.com/repos/NetSweet/netsuite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NetSweet/netsuite/statuses/{sha}","languages_url":"https://api.github.com/repos/NetSweet/netsuite/languages","stargazers_url":"https://api.github.com/repos/NetSweet/netsuite/stargazers","contributors_url":"https://api.github.com/repos/NetSweet/netsuite/contributors","subscribers_url":"https://api.github.com/repos/NetSweet/netsuite/subscribers","subscription_url":"https://api.github.com/repos/NetSweet/netsuite/subscription","commits_url":"https://api.github.com/repos/NetSweet/netsuite/commits{/sha}","git_commits_url":"https://api.github.com/repos/NetSweet/netsuite/git/commits{/sha}","comments_url":"https://api.github.com/repos/NetSweet/netsuite/comments{/number}","issue_comment_url":"https://api.github.com/repos/NetSweet/netsuite/issues/comments{/number}","contents_url":"https://api.github.com/repos/NetSweet/netsuite/contents/{+path}","compare_url":"https://api.github.com/repos/NetSweet/netsuite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NetSweet/netsuite/merges","archive_url":"https://api.github.com/repos/NetSweet/netsuite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NetSweet/netsuite/downloads","issues_url":"https://api.github.com/repos/NetSweet/netsuite/issues{/number}","pulls_url":"https://api.github.com/repos/NetSweet/netsuite/pulls{/number}","milestones_url":"https://api.github.com/repos/NetSweet/netsuite/milestones{/number}","notifications_url":"https://api.github.com/repos/NetSweet/netsuite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NetSweet/netsuite/labels{/name}","releases_url":"https://api.github.com/repos/NetSweet/netsuite/releases{/id}","deployments_url":"https://api.github.com/repos/NetSweet/netsuite/deployments","created_at":"2011-12-21T18:22:17Z","updated_at":"2016-07-25T08:29:50Z","pushed_at":"2016-08-18T14:30:01Z","git_url":"git://github.com/NetSweet/netsuite.git","ssh_url":"git@github.com:NetSweet/netsuite.git","clone_url":"https://github.com/NetSweet/netsuite.git","svn_url":"https://github.com/NetSweet/netsuite","homepage":"http://opensuite-slackin.herokuapp.com","size":2216,"stargazers_count":100,"watchers_count":100,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":30,"forks":120,"open_issues":30,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NetSweet/netsuite/pulls/284"},"html":{"href":"https://github.com/NetSweet/netsuite/pull/284"},"issue":{"href":"https://api.github.com/repos/NetSweet/netsuite/issues/284"},"comments":{"href":"https://api.github.com/repos/NetSweet/netsuite/issues/284/comments"},"review_comments":{"href":"https://api.github.com/repos/NetSweet/netsuite/pulls/284/comments"},"review_comment":{"href":"https://api.github.com/repos/NetSweet/netsuite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NetSweet/netsuite/pulls/284/commits"},"statuses":{"href":"https://api.github.com/repos/NetSweet/netsuite/statuses/e17024b08bff8b347e7601fbe39236a7f92a3dce"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":82,"deletions":2,"changed_files":3}}
{"actor":{"display_login":"davidlaprade"}}