{"action":"created","issue":{"url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/536","repository_url":"https://api.github.com/repos/SharePoint/PnP-JS-Core","labels_url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/536/comments","events_url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/536/events","html_url":"https://github.com/SharePoint/PnP-JS-Core/issues/536","id":244058882,"number":536,"title":"Generic method for calling other SharePoint endpoints","user":{"login":"halshing","id":8210038,"avatar_url":"https://avatars3.githubusercontent.com/u/8210038?v=4","gravatar_id":"","url":"https://api.github.com/users/halshing","html_url":"https://github.com/halshing","followers_url":"https://api.github.com/users/halshing/followers","following_url":"https://api.github.com/users/halshing/following{/other_user}","gists_url":"https://api.github.com/users/halshing/gists{/gist_id}","starred_url":"https://api.github.com/users/halshing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halshing/subscriptions","organizations_url":"https://api.github.com/users/halshing/orgs","repos_url":"https://api.github.com/users/halshing/repos","events_url":"https://api.github.com/users/halshing/events{/privacy}","received_events_url":"https://api.github.com/users/halshing/received_events","type":"User","site_admin":false},"labels":[{"id":571333073,"url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/labels/Fixed%20/%20Answered","name":"Fixed / Answered","color":"0e8a16","default":false},{"id":336234984,"url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-19T14:23:34Z","updated_at":"2017-07-20T16:12:18Z","closed_at":null,"body":"#### Category\r\n[x] Enhancement\r\n\r\n[ ] Bug\r\n\r\n[ ] Question\r\n\r\n#### Version\r\n\r\nPlease specify what version of the library you are using: [  2.0.6  ]\r\n\r\n#### Expected / Desired Behavior / Question\r\nI'm using the Fabric UI People Picker component in my application and I need to wire it up as a People Picker control so users can search for a person by their name, email, login, etc. I'd like to use the REST endpoint _api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser to get the data to use in my people picker, however this endpoint doesn't exist (yet!) in the PnP JS Core library. I know I can use jQuery to get this working, but I am already using PnP JS Core for everything else and I'd rather not use two different libraries to develop against the SharePoint REST API.\r\n\r\nWhile I understand you may not want to include all endpoints as part of the library, but it would be great to have a generic method where I can call whatever endpoint I want directly and have the data returned.\r\n\r\nSomething like:\r\n\r\n```javascript\r\npnp.executeEndPoint(endpoint, data).then(function (result) { console.log(result); });\r\n// Example: pnp.executeEndPoint(\"SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser\", { QueryString: \"john doe\" }).then(function (result) { console.log(result); });\r\n```\r\n\r\nThis way, we can still utilize the other endpoints available without you guys having to add all of them to the library.\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/comments/316753079","html_url":"https://github.com/SharePoint/PnP-JS-Core/issues/536#issuecomment-316753079","issue_url":"https://api.github.com/repos/SharePoint/PnP-JS-Core/issues/536","id":316753079,"user":{"login":"halshing","id":8210038,"avatar_url":"https://avatars3.githubusercontent.com/u/8210038?v=4","gravatar_id":"","url":"https://api.github.com/users/halshing","html_url":"https://github.com/halshing","followers_url":"https://api.github.com/users/halshing/followers","following_url":"https://api.github.com/users/halshing/following{/other_user}","gists_url":"https://api.github.com/users/halshing/gists{/gist_id}","starred_url":"https://api.github.com/users/halshing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halshing/subscriptions","organizations_url":"https://api.github.com/users/halshing/orgs","repos_url":"https://api.github.com/users/halshing/repos","events_url":"https://api.github.com/users/halshing/events{/privacy}","received_events_url":"https://api.github.com/users/halshing/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T16:12:18Z","updated_at":"2017-07-20T16:12:18Z","body":"Great, thank you all for the feedback! @koltyakov suggestion lead me to the HttpClient which I ended up using. Thanks again."}}
{"actor":{"display_login":"halshing"}}