{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/comments/42852154","id":42852154,"diff_hunk":"@@ -16,13 +16,18 @@ const emptyResponse = {\n class MyFtClient {\n \tconstructor ({apiRoot} = {}) {\n \t\tif (!apiRoot) {\n-\t\t\tthrow 'User prefs must be constructed with an api root';\n+\t\t\tthrow 'User prefs must be constructed with an api root. Ensure the MYFT_API_URL environment variable is set.';","path":"src/myft-client.js","position":5,"original_position":5,"commit_id":"27e65f7cc6cffef9d80640dc6ab3f81f10fd875d","original_commit_id":"27e65f7cc6cffef9d80640dc6ab3f81f10fd875d","user":{"login":"Lrnk","id":4622378,"avatar_url":"https://avatars.githubusercontent.com/u/4622378?v=3","gravatar_id":"","url":"https://api.github.com/users/Lrnk","html_url":"https://github.com/Lrnk","followers_url":"https://api.github.com/users/Lrnk/followers","following_url":"https://api.github.com/users/Lrnk/following{/other_user}","gists_url":"https://api.github.com/users/Lrnk/gists{/gist_id}","starred_url":"https://api.github.com/users/Lrnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lrnk/subscriptions","organizations_url":"https://api.github.com/users/Lrnk/orgs","repos_url":"https://api.github.com/users/Lrnk/repos","events_url":"https://api.github.com/users/Lrnk/events{/privacy}","received_events_url":"https://api.github.com/users/Lrnk/received_events","type":"User","site_admin":false},"body":"Good save","created_at":"2015-10-23T10:38:06Z","updated_at":"2015-10-23T10:38:06Z","html_url":"https://github.com/Financial-Times/next-myft-client/pull/57#discussion_r42852154","pull_request_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/comments/42852154"},"html":{"href":"https://github.com/Financial-Times/next-myft-client/pull/57#discussion_r42852154"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57","id":48564360,"html_url":"https://github.com/Financial-Times/next-myft-client/pull/57","diff_url":"https://github.com/Financial-Times/next-myft-client/pull/57.diff","patch_url":"https://github.com/Financial-Times/next-myft-client/pull/57.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/57","number":57,"state":"open","locked":false,"title":"Make it work for lists (aka clippings)","user":{"login":"Lrnk","id":4622378,"avatar_url":"https://avatars.githubusercontent.com/u/4622378?v=3","gravatar_id":"","url":"https://api.github.com/users/Lrnk","html_url":"https://github.com/Lrnk","followers_url":"https://api.github.com/users/Lrnk/followers","following_url":"https://api.github.com/users/Lrnk/following{/other_user}","gists_url":"https://api.github.com/users/Lrnk/gists{/gist_id}","starred_url":"https://api.github.com/users/Lrnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lrnk/subscriptions","organizations_url":"https://api.github.com/users/Lrnk/orgs","repos_url":"https://api.github.com/users/Lrnk/repos","events_url":"https://api.github.com/users/Lrnk/events{/privacy}","received_events_url":"https://api.github.com/users/Lrnk/received_events","type":"User","site_admin":false},"body":" - changed init() to take array of additional relationships to load instead of object with hard-coded ones\r\n - new getAll(relationship) function\r\n - updated readme","created_at":"2015-10-23T10:29:44Z","updated_at":"2015-10-23T10:38:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26dc1e0e914421d3faa925b0593b8b61f388e63f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/57/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-client/statuses/27e65f7cc6cffef9d80640dc6ab3f81f10fd875d","head":{"label":"Financial-Times:lists","ref":"lists","sha":"27e65f7cc6cffef9d80640dc6ab3f81f10fd875d","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":33719320,"name":"next-myft-client","full_name":"Financial-Times/next-myft-client","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-myft-client","description":"Client side component for communicating with the user-preferences api","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-myft-client","forks_url":"https://api.github.com/repos/Financial-Times/next-myft-client/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-myft-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-myft-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-myft-client/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-myft-client/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-myft-client/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-myft-client/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-myft-client/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-myft-client/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-myft-client/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-myft-client/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-myft-client/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-myft-client/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-myft-client/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-myft-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-myft-client/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-myft-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-myft-client/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-myft-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-myft-client/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-myft-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-myft-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-myft-client/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-myft-client/releases{/id}","created_at":"2015-04-10T09:08:31Z","updated_at":"2015-05-05T13:11:38Z","pushed_at":"2015-10-23T10:29:44Z","git_url":"git://github.com/Financial-Times/next-myft-client.git","ssh_url":"git@github.com:Financial-Times/next-myft-client.git","clone_url":"https://github.com/Financial-Times/next-myft-client.git","svn_url":"https://github.com/Financial-Times/next-myft-client","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"75eb32978fd20c0a69da3521676ef71cfc5beff5","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":33719320,"name":"next-myft-client","full_name":"Financial-Times/next-myft-client","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-myft-client","description":"Client side component for communicating with the user-preferences api","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-myft-client","forks_url":"https://api.github.com/repos/Financial-Times/next-myft-client/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-myft-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-myft-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-myft-client/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-myft-client/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-myft-client/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-myft-client/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-myft-client/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-myft-client/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-myft-client/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-myft-client/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-myft-client/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-myft-client/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-myft-client/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-myft-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-myft-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-myft-client/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-myft-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-myft-client/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-myft-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-myft-client/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-myft-client/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-myft-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-myft-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-myft-client/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-myft-client/releases{/id}","created_at":"2015-04-10T09:08:31Z","updated_at":"2015-05-05T13:11:38Z","pushed_at":"2015-10-23T10:29:44Z","git_url":"git://github.com/Financial-Times/next-myft-client.git","ssh_url":"git@github.com:Financial-Times/next-myft-client.git","clone_url":"https://github.com/Financial-Times/next-myft-client.git","svn_url":"https://github.com/Financial-Times/next-myft-client","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57"},"html":{"href":"https://github.com/Financial-Times/next-myft-client/pull/57"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/57"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-myft-client/statuses/27e65f7cc6cffef9d80640dc6ab3f81f10fd875d"}}}}