{"action":"created","issue":{"url":"https://api.github.com/repos/request/request-promise/issues/211","repository_url":"https://api.github.com/repos/request/request-promise","labels_url":"https://api.github.com/repos/request/request-promise/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/request/request-promise/issues/211/comments","events_url":"https://api.github.com/repos/request/request-promise/issues/211/events","html_url":"https://github.com/request/request-promise/issues/211","id":244709324,"number":211,"title":"How can I return the body?","user":{"login":"VerHext","id":25115243,"avatar_url":"https://avatars3.githubusercontent.com/u/25115243?v=4","gravatar_id":"","url":"https://api.github.com/users/VerHext","html_url":"https://github.com/VerHext","followers_url":"https://api.github.com/users/VerHext/followers","following_url":"https://api.github.com/users/VerHext/following{/other_user}","gists_url":"https://api.github.com/users/VerHext/gists{/gist_id}","starred_url":"https://api.github.com/users/VerHext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VerHext/subscriptions","organizations_url":"https://api.github.com/users/VerHext/orgs","repos_url":"https://api.github.com/users/VerHext/repos","events_url":"https://api.github.com/users/VerHext/events{/privacy}","received_events_url":"https://api.github.com/users/VerHext/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-21T15:45:01Z","updated_at":"2017-07-21T18:38:09Z","closed_at":null,"body":"I would like the body from a website from a function returnen. \r\nExample:\r\n\r\n``` js\r\nvar ch = getChangelog('http://xxxxxxxx.com');\r\nconsole.log(ch);\r\n\r\n\r\nfunction getChangelog(url){\r\n return rp(url).then(function(body){\r\n})\r\n}\r\n```\r\n\r\nI hope you understand what I would like. Who knows how I can implement this, please with code example."},"comment":{"url":"https://api.github.com/repos/request/request-promise/issues/comments/317080157","html_url":"https://github.com/request/request-promise/issues/211#issuecomment-317080157","issue_url":"https://api.github.com/repos/request/request-promise/issues/211","id":317080157,"user":{"login":"VerHext","id":25115243,"avatar_url":"https://avatars3.githubusercontent.com/u/25115243?v=4","gravatar_id":"","url":"https://api.github.com/users/VerHext","html_url":"https://github.com/VerHext","followers_url":"https://api.github.com/users/VerHext/followers","following_url":"https://api.github.com/users/VerHext/following{/other_user}","gists_url":"https://api.github.com/users/VerHext/gists{/gist_id}","starred_url":"https://api.github.com/users/VerHext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VerHext/subscriptions","organizations_url":"https://api.github.com/users/VerHext/orgs","repos_url":"https://api.github.com/users/VerHext/repos","events_url":"https://api.github.com/users/VerHext/events{/privacy}","received_events_url":"https://api.github.com/users/VerHext/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T18:38:09Z","updated_at":"2017-07-21T18:38:09Z","body":"yes but can i set ths to a variable? \r\n\r\ne.g. \r\n``` js\r\nvar ch = getChangelog('http://xxxxxxxx.com') \r\n    .then(function (body) { \r\n        return body; // it is a objekt.\r\n    });\r\n```"}}
{"actor":{"display_login":"VerHext"}}