{"action":"opened","number":174,"pull_request":{"url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174","id":27000459,"html_url":"https://github.com/jonathanchrisp/bwapi/pull/174","diff_url":"https://github.com/jonathanchrisp/bwapi/pull/174.diff","patch_url":"https://github.com/jonathanchrisp/bwapi/pull/174.patch","issue_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/174","number":174,"state":"open","locked":false,"title":"162 - store and check expires_in time for the access_token  ","user":{"login":"jonathanchrisp","id":406799,"avatar_url":"https://avatars.githubusercontent.com/u/406799?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanchrisp","html_url":"https://github.com/jonathanchrisp","followers_url":"https://api.github.com/users/jonathanchrisp/followers","following_url":"https://api.github.com/users/jonathanchrisp/following{/other_user}","gists_url":"https://api.github.com/users/jonathanchrisp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanchrisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanchrisp/subscriptions","organizations_url":"https://api.github.com/users/jonathanchrisp/orgs","repos_url":"https://api.github.com/users/jonathanchrisp/repos","events_url":"https://api.github.com/users/jonathanchrisp/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanchrisp/received_events","type":"User","site_admin":false},"body":"### DO NOT MERGE \r\nPlease do not merge as of yet as I would like to add some additional unit tests.\r\n\r\n## Changes\r\n\r\n* Added new method to check if the access_token has been expired and added a check within the authenticated? method. \r\n* Added new instance variable on the client instance (access_token_expiry) which returns the date\r\n\r\n## Results\r\nRan the unit and rubocop tests as per the contriibuting guidelines:\r\n```\r\n108 files inspected, no offenses detected\r\nFinished in 0.02969 seconds (files took 0.99518 seconds to load)\r\n41 examples, 0 failures\r\n```","created_at":"2015-01-08T00:57:50Z","updated_at":"2015-01-08T00:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174/commits","review_comments_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174/comments","review_comment_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/174/comments","statuses_url":"https://api.github.com/repos/jonathanchrisp/bwapi/statuses/39f3179dcf4e643444a82beadb8198a6c88cc26d","head":{"label":"jonathanchrisp:162-expires-property","ref":"162-expires-property","sha":"39f3179dcf4e643444a82beadb8198a6c88cc26d","user":{"login":"jonathanchrisp","id":406799,"avatar_url":"https://avatars.githubusercontent.com/u/406799?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanchrisp","html_url":"https://github.com/jonathanchrisp","followers_url":"https://api.github.com/users/jonathanchrisp/followers","following_url":"https://api.github.com/users/jonathanchrisp/following{/other_user}","gists_url":"https://api.github.com/users/jonathanchrisp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanchrisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanchrisp/subscriptions","organizations_url":"https://api.github.com/users/jonathanchrisp/orgs","repos_url":"https://api.github.com/users/jonathanchrisp/repos","events_url":"https://api.github.com/users/jonathanchrisp/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanchrisp/received_events","type":"User","site_admin":false},"repo":{"id":10714290,"name":"bwapi","full_name":"jonathanchrisp/bwapi","owner":{"login":"jonathanchrisp","id":406799,"avatar_url":"https://avatars.githubusercontent.com/u/406799?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanchrisp","html_url":"https://github.com/jonathanchrisp","followers_url":"https://api.github.com/users/jonathanchrisp/followers","following_url":"https://api.github.com/users/jonathanchrisp/following{/other_user}","gists_url":"https://api.github.com/users/jonathanchrisp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanchrisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanchrisp/subscriptions","organizations_url":"https://api.github.com/users/jonathanchrisp/orgs","repos_url":"https://api.github.com/users/jonathanchrisp/repos","events_url":"https://api.github.com/users/jonathanchrisp/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanchrisp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanchrisp/bwapi","description":"A Ruby wrapper for the Brandwatch API","fork":false,"url":"https://api.github.com/repos/jonathanchrisp/bwapi","forks_url":"https://api.github.com/repos/jonathanchrisp/bwapi/forks","keys_url":"https://api.github.com/repos/jonathanchrisp/bwapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanchrisp/bwapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanchrisp/bwapi/teams","hooks_url":"https://api.github.com/repos/jonathanchrisp/bwapi/hooks","issue_events_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanchrisp/bwapi/events","assignees_url":"https://api.github.com/repos/jonathanchrisp/bwapi/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanchrisp/bwapi/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanchrisp/bwapi/tags","blobs_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanchrisp/bwapi/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanchrisp/bwapi/languages","stargazers_url":"https://api.github.com/repos/jonathanchrisp/bwapi/stargazers","contributors_url":"https://api.github.com/repos/jonathanchrisp/bwapi/contributors","subscribers_url":"https://api.github.com/repos/jonathanchrisp/bwapi/subscribers","subscription_url":"https://api.github.com/repos/jonathanchrisp/bwapi/subscription","commits_url":"https://api.github.com/repos/jonathanchrisp/bwapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanchrisp/bwapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/comments/{number}","contents_url":"https://api.github.com/repos/jonathanchrisp/bwapi/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanchrisp/bwapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanchrisp/bwapi/merges","archive_url":"https://api.github.com/repos/jonathanchrisp/bwapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanchrisp/bwapi/downloads","issues_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanchrisp/bwapi/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanchrisp/bwapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanchrisp/bwapi/labels{/name}","releases_url":"https://api.github.com/repos/jonathanchrisp/bwapi/releases{/id}","created_at":"2013-06-16T01:43:28Z","updated_at":"2014-09-05T10:40:28Z","pushed_at":"2015-01-08T00:51:47Z","git_url":"git://github.com/jonathanchrisp/bwapi.git","ssh_url":"git@github.com:jonathanchrisp/bwapi.git","clone_url":"https://github.com/jonathanchrisp/bwapi.git","svn_url":"https://github.com/jonathanchrisp/bwapi","homepage":"","size":1669,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"jonathanchrisp:staging","ref":"staging","sha":"14085474e52f54535b844c644499651069ebba2a","user":{"login":"jonathanchrisp","id":406799,"avatar_url":"https://avatars.githubusercontent.com/u/406799?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanchrisp","html_url":"https://github.com/jonathanchrisp","followers_url":"https://api.github.com/users/jonathanchrisp/followers","following_url":"https://api.github.com/users/jonathanchrisp/following{/other_user}","gists_url":"https://api.github.com/users/jonathanchrisp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanchrisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanchrisp/subscriptions","organizations_url":"https://api.github.com/users/jonathanchrisp/orgs","repos_url":"https://api.github.com/users/jonathanchrisp/repos","events_url":"https://api.github.com/users/jonathanchrisp/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanchrisp/received_events","type":"User","site_admin":false},"repo":{"id":10714290,"name":"bwapi","full_name":"jonathanchrisp/bwapi","owner":{"login":"jonathanchrisp","id":406799,"avatar_url":"https://avatars.githubusercontent.com/u/406799?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanchrisp","html_url":"https://github.com/jonathanchrisp","followers_url":"https://api.github.com/users/jonathanchrisp/followers","following_url":"https://api.github.com/users/jonathanchrisp/following{/other_user}","gists_url":"https://api.github.com/users/jonathanchrisp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanchrisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanchrisp/subscriptions","organizations_url":"https://api.github.com/users/jonathanchrisp/orgs","repos_url":"https://api.github.com/users/jonathanchrisp/repos","events_url":"https://api.github.com/users/jonathanchrisp/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanchrisp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanchrisp/bwapi","description":"A Ruby wrapper for the Brandwatch API","fork":false,"url":"https://api.github.com/repos/jonathanchrisp/bwapi","forks_url":"https://api.github.com/repos/jonathanchrisp/bwapi/forks","keys_url":"https://api.github.com/repos/jonathanchrisp/bwapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanchrisp/bwapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanchrisp/bwapi/teams","hooks_url":"https://api.github.com/repos/jonathanchrisp/bwapi/hooks","issue_events_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanchrisp/bwapi/events","assignees_url":"https://api.github.com/repos/jonathanchrisp/bwapi/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanchrisp/bwapi/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanchrisp/bwapi/tags","blobs_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanchrisp/bwapi/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanchrisp/bwapi/languages","stargazers_url":"https://api.github.com/repos/jonathanchrisp/bwapi/stargazers","contributors_url":"https://api.github.com/repos/jonathanchrisp/bwapi/contributors","subscribers_url":"https://api.github.com/repos/jonathanchrisp/bwapi/subscribers","subscription_url":"https://api.github.com/repos/jonathanchrisp/bwapi/subscription","commits_url":"https://api.github.com/repos/jonathanchrisp/bwapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanchrisp/bwapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanchrisp/bwapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/comments/{number}","contents_url":"https://api.github.com/repos/jonathanchrisp/bwapi/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanchrisp/bwapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanchrisp/bwapi/merges","archive_url":"https://api.github.com/repos/jonathanchrisp/bwapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanchrisp/bwapi/downloads","issues_url":"https://api.github.com/repos/jonathanchrisp/bwapi/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanchrisp/bwapi/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanchrisp/bwapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanchrisp/bwapi/labels{/name}","releases_url":"https://api.github.com/repos/jonathanchrisp/bwapi/releases{/id}","created_at":"2013-06-16T01:43:28Z","updated_at":"2014-09-05T10:40:28Z","pushed_at":"2015-01-08T00:51:47Z","git_url":"git://github.com/jonathanchrisp/bwapi.git","ssh_url":"git@github.com:jonathanchrisp/bwapi.git","clone_url":"https://github.com/jonathanchrisp/bwapi.git","svn_url":"https://github.com/jonathanchrisp/bwapi","homepage":"","size":1669,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174"},"html":{"href":"https://github.com/jonathanchrisp/bwapi/pull/174"},"issue":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/174"},"comments":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/statuses/39f3179dcf4e643444a82beadb8198a6c88cc26d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":5,"changed_files":5}}