{"action":"created","issue":{"url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/2","labels_url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/2/comments","events_url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/2/events","html_url":"https://github.com/drewbrokke/liferay-web-services-cli/issues/2","id":70759194,"number":2,"title":"Use liferay-connector","user":{"login":"yuchi","id":646609,"avatar_url":"https://avatars.githubusercontent.com/u/646609?v=3","gravatar_id":"","url":"https://api.github.com/users/yuchi","html_url":"https://github.com/yuchi","followers_url":"https://api.github.com/users/yuchi/followers","following_url":"https://api.github.com/users/yuchi/following{/other_user}","gists_url":"https://api.github.com/users/yuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchi/subscriptions","organizations_url":"https://api.github.com/users/yuchi/orgs","repos_url":"https://api.github.com/users/yuchi/repos","events_url":"https://api.github.com/users/yuchi/events{/privacy}","received_events_url":"https://api.github.com/users/yuchi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T18:20:20Z","updated_at":"2015-04-24T18:43:40Z","closed_at":null,"body":"Great project! I had a similar idea for [liferay-connector](https://github.com/smclab/liferay-connector), which I suggest you to use for this project.\r\n\r\nIt’s a library which let’s you to do the following (pardon my ES7):\r\n\r\n```js\r\n// add-user.js\r\n\r\nimport liferay from 'liferay-connector';\r\n\r\nexport default async function addUser(userId, roleIds, cfg) {\r\n  const session = await liferay.authenticate(cfg.portalURL, { login: cfg.login, password: cfg.password });\r\n  return session.invoke({\r\n    '/role/add-user-roles': {\r\n      userId: userId,\r\n      roleIds: roleIds\r\n    }\r\n  });\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/comments/96029927","html_url":"https://github.com/drewbrokke/liferay-web-services-cli/issues/2#issuecomment-96029927","issue_url":"https://api.github.com/repos/drewbrokke/liferay-web-services-cli/issues/2","id":96029927,"user":{"login":"drewbrokke","id":6403097,"avatar_url":"https://avatars.githubusercontent.com/u/6403097?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbrokke","html_url":"https://github.com/drewbrokke","followers_url":"https://api.github.com/users/drewbrokke/followers","following_url":"https://api.github.com/users/drewbrokke/following{/other_user}","gists_url":"https://api.github.com/users/drewbrokke/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbrokke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbrokke/subscriptions","organizations_url":"https://api.github.com/users/drewbrokke/orgs","repos_url":"https://api.github.com/users/drewbrokke/repos","events_url":"https://api.github.com/users/drewbrokke/events{/privacy}","received_events_url":"https://api.github.com/users/drewbrokke/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T18:43:40Z","updated_at":"2015-04-24T18:43:40Z","body":"Thanks @yuchi!  I like the suggestion, though it seems like it does not currently support development builds (I use the utility a lot for working on the master branch).  Is this configurable somehow?\r\n\r\n```\r\nerr:  { [UnrecognizedLiferayVersion: Cannot recognize liferay version 7000]\r\n  version: 7000,\r\n  name: 'UnrecognizedLiferayVersion',\r\n  message: 'Cannot recognize liferay version 7000' }\r\n```"}}