{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/speric/kindle-highlights/pulls/16","id":153208257,"html_url":"https://github.com/speric/kindle-highlights/pull/16","diff_url":"https://github.com/speric/kindle-highlights/pull/16.diff","patch_url":"https://github.com/speric/kindle-highlights/pull/16.patch","issue_url":"https://api.github.com/repos/speric/kindle-highlights/issues/16","number":16,"state":"open","locked":false,"title":"Account for new Kindle Notes page","user":{"login":"speric","id":148323,"avatar_url":"https://avatars2.githubusercontent.com/u/148323?v=4","gravatar_id":"","url":"https://api.github.com/users/speric","html_url":"https://github.com/speric","followers_url":"https://api.github.com/users/speric/followers","following_url":"https://api.github.com/users/speric/following{/other_user}","gists_url":"https://api.github.com/users/speric/gists{/gist_id}","starred_url":"https://api.github.com/users/speric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speric/subscriptions","organizations_url":"https://api.github.com/users/speric/orgs","repos_url":"https://api.github.com/users/speric/repos","events_url":"https://api.github.com/users/speric/events{/privacy}","received_events_url":"https://api.github.com/users/speric/received_events","type":"User","site_admin":false},"body":"Some time ago (not sure exactly when), Amazon updated their Kindle \"Notes and Highlights\" page. First, they changed the URL to this page, and secondly, they completely changed the structure of the page.\r\n\r\nPreviously, it was possible to figure out which URL was serving up the JSON which drove the highlights, and after logging in, simply fetch highlights via that URL. As best I can tell, that has also changed. Now,\r\nthe URL which serves up the highlights data returns HTML.\r\n\r\nAs a result, I made some significant changes.\r\n\r\nIn the interest of [overcoming my obsession with stringly-typed\r\nRuby](http://confreaks.tv/videos/rubyconf2014-overcoming-our-obsession-with-stringly-typed-ruby), I've introduced `Book` and `Highlight` classes. Highlights are fetched through the `Book` class, via the Mechanize agent.\r\n\r\nAdditionally, highlights are losing the following information:\r\n\r\n```\r\n\"customerId\"\r\n\"embeddedId\"\r\n\"endLocation\"\r\n\"howLongAgo\"\r\n\"startLocation\"\r\n\"timestamp\"\r\n```\r\n\r\nUnfortunately, it became too difficult at this time to figure out how to get that information from the \"new\" endpoint. I welcome anyone taking a shot at getting that information back into the `Highlight` class.\r\n\r\nSince these are breaking changes, I will bump the version to 2.0 and cut a new release sometime soon.","created_at":"2017-11-17T03:37:48Z","updated_at":"2017-11-17T03:37:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/speric/kindle-highlights/pulls/16/commits","review_comments_url":"https://api.github.com/repos/speric/kindle-highlights/pulls/16/comments","review_comment_url":"https://api.github.com/repos/speric/kindle-highlights/pulls/comments{/number}","comments_url":"https://api.github.com/repos/speric/kindle-highlights/issues/16/comments","statuses_url":"https://api.github.com/repos/speric/kindle-highlights/statuses/321e2b9413a5f9b5ddb90aa3f66f1d8c3d285470","head":{"label":"speric:new-signin-page","ref":"new-signin-page","sha":"321e2b9413a5f9b5ddb90aa3f66f1d8c3d285470","user":{"login":"speric","id":148323,"avatar_url":"https://avatars2.githubusercontent.com/u/148323?v=4","gravatar_id":"","url":"https://api.github.com/users/speric","html_url":"https://github.com/speric","followers_url":"https://api.github.com/users/speric/followers","following_url":"https://api.github.com/users/speric/following{/other_user}","gists_url":"https://api.github.com/users/speric/gists{/gist_id}","starred_url":"https://api.github.com/users/speric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speric/subscriptions","organizations_url":"https://api.github.com/users/speric/orgs","repos_url":"https://api.github.com/users/speric/repos","events_url":"https://api.github.com/users/speric/events{/privacy}","received_events_url":"https://api.github.com/users/speric/received_events","type":"User","site_admin":false},"repo":{"id":3020573,"name":"kindle-highlights","full_name":"speric/kindle-highlights","owner":{"login":"speric","id":148323,"avatar_url":"https://avatars2.githubusercontent.com/u/148323?v=4","gravatar_id":"","url":"https://api.github.com/users/speric","html_url":"https://github.com/speric","followers_url":"https://api.github.com/users/speric/followers","following_url":"https://api.github.com/users/speric/following{/other_user}","gists_url":"https://api.github.com/users/speric/gists{/gist_id}","starred_url":"https://api.github.com/users/speric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speric/subscriptions","organizations_url":"https://api.github.com/users/speric/orgs","repos_url":"https://api.github.com/users/speric/repos","events_url":"https://api.github.com/users/speric/events{/privacy}","received_events_url":"https://api.github.com/users/speric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/speric/kindle-highlights","description":"Get your Kindle highlights.","fork":false,"url":"https://api.github.com/repos/speric/kindle-highlights","forks_url":"https://api.github.com/repos/speric/kindle-highlights/forks","keys_url":"https://api.github.com/repos/speric/kindle-highlights/keys{/key_id}","collaborators_url":"https://api.github.com/repos/speric/kindle-highlights/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/speric/kindle-highlights/teams","hooks_url":"https://api.github.com/repos/speric/kindle-highlights/hooks","issue_events_url":"https://api.github.com/repos/speric/kindle-highlights/issues/events{/number}","events_url":"https://api.github.com/repos/speric/kindle-highlights/events","assignees_url":"https://api.github.com/repos/speric/kindle-highlights/assignees{/user}","branches_url":"https://api.github.com/repos/speric/kindle-highlights/branches{/branch}","tags_url":"https://api.github.com/repos/speric/kindle-highlights/tags","blobs_url":"https://api.github.com/repos/speric/kindle-highlights/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/speric/kindle-highlights/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/speric/kindle-highlights/git/refs{/sha}","trees_url":"https://api.github.com/repos/speric/kindle-highlights/git/trees{/sha}","statuses_url":"https://api.github.com/repos/speric/kindle-highlights/statuses/{sha}","languages_url":"https://api.github.com/repos/speric/kindle-highlights/languages","stargazers_url":"https://api.github.com/repos/speric/kindle-highlights/stargazers","contributors_url":"https://api.github.com/repos/speric/kindle-highlights/contributors","subscribers_url":"https://api.github.com/repos/speric/kindle-highlights/subscribers","subscription_url":"https://api.github.com/repos/speric/kindle-highlights/subscription","commits_url":"https://api.github.com/repos/speric/kindle-highlights/commits{/sha}","git_commits_url":"https://api.github.com/repos/speric/kindle-highlights/git/commits{/sha}","comments_url":"https://api.github.com/repos/speric/kindle-highlights/comments{/number}","issue_comment_url":"https://api.github.com/repos/speric/kindle-highlights/issues/comments{/number}","contents_url":"https://api.github.com/repos/speric/kindle-highlights/contents/{+path}","compare_url":"https://api.github.com/repos/speric/kindle-highlights/compare/{base}...{head}","merges_url":"https://api.github.com/repos/speric/kindle-highlights/merges","archive_url":"https://api.github.com/repos/speric/kindle-highlights/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/speric/kindle-highlights/downloads","issues_url":"https://api.github.com/repos/speric/kindle-highlights/issues{/number}","pulls_url":"https://api.github.com/repos/speric/kindle-highlights/pulls{/number}","milestones_url":"https://api.github.com/repos/speric/kindle-highlights/milestones{/number}","notifications_url":"https://api.github.com/repos/speric/kindle-highlights/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/speric/kindle-highlights/labels{/name}","releases_url":"https://api.github.com/repos/speric/kindle-highlights/releases{/id}","deployments_url":"https://api.github.com/repos/speric/kindle-highlights/deployments","created_at":"2011-12-20T15:54:17Z","updated_at":"2017-11-13T10:40:47Z","pushed_at":"2017-11-17T03:37:14Z","git_url":"git://github.com/speric/kindle-highlights.git","ssh_url":"git@github.com:speric/kindle-highlights.git","clone_url":"https://github.com/speric/kindle-highlights.git","svn_url":"https://github.com/speric/kindle-highlights","homepage":"https://rubygems.org/gems/kindle-highlights","size":45,"stargazers_count":295,"watchers_count":295,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":26,"open_issues":2,"watchers":295,"default_branch":"master"}},"base":{"label":"speric:master","ref":"master","sha":"bbbb6c894a1e07532ac0b1f2162504b86ae2492e","user":{"login":"speric","id":148323,"avatar_url":"https://avatars2.githubusercontent.com/u/148323?v=4","gravatar_id":"","url":"https://api.github.com/users/speric","html_url":"https://github.com/speric","followers_url":"https://api.github.com/users/speric/followers","following_url":"https://api.github.com/users/speric/following{/other_user}","gists_url":"https://api.github.com/users/speric/gists{/gist_id}","starred_url":"https://api.github.com/users/speric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speric/subscriptions","organizations_url":"https://api.github.com/users/speric/orgs","repos_url":"https://api.github.com/users/speric/repos","events_url":"https://api.github.com/users/speric/events{/privacy}","received_events_url":"https://api.github.com/users/speric/received_events","type":"User","site_admin":false},"repo":{"id":3020573,"name":"kindle-highlights","full_name":"speric/kindle-highlights","owner":{"login":"speric","id":148323,"avatar_url":"https://avatars2.githubusercontent.com/u/148323?v=4","gravatar_id":"","url":"https://api.github.com/users/speric","html_url":"https://github.com/speric","followers_url":"https://api.github.com/users/speric/followers","following_url":"https://api.github.com/users/speric/following{/other_user}","gists_url":"https://api.github.com/users/speric/gists{/gist_id}","starred_url":"https://api.github.com/users/speric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speric/subscriptions","organizations_url":"https://api.github.com/users/speric/orgs","repos_url":"https://api.github.com/users/speric/repos","events_url":"https://api.github.com/users/speric/events{/privacy}","received_events_url":"https://api.github.com/users/speric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/speric/kindle-highlights","description":"Get your Kindle highlights.","fork":false,"url":"https://api.github.com/repos/speric/kindle-highlights","forks_url":"https://api.github.com/repos/speric/kindle-highlights/forks","keys_url":"https://api.github.com/repos/speric/kindle-highlights/keys{/key_id}","collaborators_url":"https://api.github.com/repos/speric/kindle-highlights/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/speric/kindle-highlights/teams","hooks_url":"https://api.github.com/repos/speric/kindle-highlights/hooks","issue_events_url":"https://api.github.com/repos/speric/kindle-highlights/issues/events{/number}","events_url":"https://api.github.com/repos/speric/kindle-highlights/events","assignees_url":"https://api.github.com/repos/speric/kindle-highlights/assignees{/user}","branches_url":"https://api.github.com/repos/speric/kindle-highlights/branches{/branch}","tags_url":"https://api.github.com/repos/speric/kindle-highlights/tags","blobs_url":"https://api.github.com/repos/speric/kindle-highlights/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/speric/kindle-highlights/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/speric/kindle-highlights/git/refs{/sha}","trees_url":"https://api.github.com/repos/speric/kindle-highlights/git/trees{/sha}","statuses_url":"https://api.github.com/repos/speric/kindle-highlights/statuses/{sha}","languages_url":"https://api.github.com/repos/speric/kindle-highlights/languages","stargazers_url":"https://api.github.com/repos/speric/kindle-highlights/stargazers","contributors_url":"https://api.github.com/repos/speric/kindle-highlights/contributors","subscribers_url":"https://api.github.com/repos/speric/kindle-highlights/subscribers","subscription_url":"https://api.github.com/repos/speric/kindle-highlights/subscription","commits_url":"https://api.github.com/repos/speric/kindle-highlights/commits{/sha}","git_commits_url":"https://api.github.com/repos/speric/kindle-highlights/git/commits{/sha}","comments_url":"https://api.github.com/repos/speric/kindle-highlights/comments{/number}","issue_comment_url":"https://api.github.com/repos/speric/kindle-highlights/issues/comments{/number}","contents_url":"https://api.github.com/repos/speric/kindle-highlights/contents/{+path}","compare_url":"https://api.github.com/repos/speric/kindle-highlights/compare/{base}...{head}","merges_url":"https://api.github.com/repos/speric/kindle-highlights/merges","archive_url":"https://api.github.com/repos/speric/kindle-highlights/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/speric/kindle-highlights/downloads","issues_url":"https://api.github.com/repos/speric/kindle-highlights/issues{/number}","pulls_url":"https://api.github.com/repos/speric/kindle-highlights/pulls{/number}","milestones_url":"https://api.github.com/repos/speric/kindle-highlights/milestones{/number}","notifications_url":"https://api.github.com/repos/speric/kindle-highlights/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/speric/kindle-highlights/labels{/name}","releases_url":"https://api.github.com/repos/speric/kindle-highlights/releases{/id}","deployments_url":"https://api.github.com/repos/speric/kindle-highlights/deployments","created_at":"2011-12-20T15:54:17Z","updated_at":"2017-11-13T10:40:47Z","pushed_at":"2017-11-17T03:37:14Z","git_url":"git://github.com/speric/kindle-highlights.git","ssh_url":"git@github.com:speric/kindle-highlights.git","clone_url":"https://github.com/speric/kindle-highlights.git","svn_url":"https://github.com/speric/kindle-highlights","homepage":"https://rubygems.org/gems/kindle-highlights","size":45,"stargazers_count":295,"watchers_count":295,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":26,"open_issues":2,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/speric/kindle-highlights/pulls/16"},"html":{"href":"https://github.com/speric/kindle-highlights/pull/16"},"issue":{"href":"https://api.github.com/repos/speric/kindle-highlights/issues/16"},"comments":{"href":"https://api.github.com/repos/speric/kindle-highlights/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/speric/kindle-highlights/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/speric/kindle-highlights/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/speric/kindle-highlights/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/speric/kindle-highlights/statuses/321e2b9413a5f9b5ddb90aa3f66f1d8c3d285470"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":277,"deletions":274,"changed_files":10}}
{"actor":{"display_login":"speric"}}