{"action":"opened","number":77,"pull_request":{"url":"https://api.github.com/repos/mendersoftware/mender/pulls/77","id":75779768,"html_url":"https://github.com/mendersoftware/mender/pull/77","diff_url":"https://github.com/mendersoftware/mender/pull/77.diff","patch_url":"https://github.com/mendersoftware/mender/pull/77.patch","issue_url":"https://api.github.com/repos/mendersoftware/mender/issues/77","number":77,"state":"open","locked":false,"title":"Setup authorization data for API requests","user":{"login":"bboozzoo","id":41870,"avatar_url":"https://avatars.githubusercontent.com/u/41870?v=3","gravatar_id":"","url":"https://api.github.com/users/bboozzoo","html_url":"https://github.com/bboozzoo","followers_url":"https://api.github.com/users/bboozzoo/followers","following_url":"https://api.github.com/users/bboozzoo/following{/other_user}","gists_url":"https://api.github.com/users/bboozzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bboozzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboozzoo/subscriptions","organizations_url":"https://api.github.com/users/bboozzoo/orgs","repos_url":"https://api.github.com/users/bboozzoo/repos","events_url":"https://api.github.com/users/bboozzoo/events{/privacy}","received_events_url":"https://api.github.com/users/bboozzoo/received_events","type":"User","site_admin":false},"body":"Add authorization data to outgoing API requests. The series add an `ApiClient` helper with a convenience method `Request()` for creating request wrappers. Request wrapper `ApiRequest` implements `ApiRequester` interface and automatically append authorization data to the outgoing request if none is present.\r\n\r\nMender controller has been updated to cache authorization code so that we don't waste time/cycles for reloading it each time it's needed.\r\n\r\n@pasinskim @kacf ","created_at":"2016-06-30T08:36:05Z","updated_at":"2016-06-30T08:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mendersoftware/mender/pulls/77/commits","review_comments_url":"https://api.github.com/repos/mendersoftware/mender/pulls/77/comments","review_comment_url":"https://api.github.com/repos/mendersoftware/mender/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mendersoftware/mender/issues/77/comments","statuses_url":"https://api.github.com/repos/mendersoftware/mender/statuses/b6d6b54311b7a477f5325c231bcac0e4c9aa4b74","head":{"label":"bboozzoo:bboozzoo/api-request-auth","ref":"bboozzoo/api-request-auth","sha":"b6d6b54311b7a477f5325c231bcac0e4c9aa4b74","user":{"login":"bboozzoo","id":41870,"avatar_url":"https://avatars.githubusercontent.com/u/41870?v=3","gravatar_id":"","url":"https://api.github.com/users/bboozzoo","html_url":"https://github.com/bboozzoo","followers_url":"https://api.github.com/users/bboozzoo/followers","following_url":"https://api.github.com/users/bboozzoo/following{/other_user}","gists_url":"https://api.github.com/users/bboozzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bboozzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboozzoo/subscriptions","organizations_url":"https://api.github.com/users/bboozzoo/orgs","repos_url":"https://api.github.com/users/bboozzoo/repos","events_url":"https://api.github.com/users/bboozzoo/events{/privacy}","received_events_url":"https://api.github.com/users/bboozzoo/received_events","type":"User","site_admin":false},"repo":{"id":58195891,"name":"mender","full_name":"bboozzoo/mender","owner":{"login":"bboozzoo","id":41870,"avatar_url":"https://avatars.githubusercontent.com/u/41870?v=3","gravatar_id":"","url":"https://api.github.com/users/bboozzoo","html_url":"https://github.com/bboozzoo","followers_url":"https://api.github.com/users/bboozzoo/followers","following_url":"https://api.github.com/users/bboozzoo/following{/other_user}","gists_url":"https://api.github.com/users/bboozzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bboozzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboozzoo/subscriptions","organizations_url":"https://api.github.com/users/bboozzoo/orgs","repos_url":"https://api.github.com/users/bboozzoo/repos","events_url":"https://api.github.com/users/bboozzoo/events{/privacy}","received_events_url":"https://api.github.com/users/bboozzoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bboozzoo/mender","description":"Mender over-the-air software updates.","fork":true,"url":"https://api.github.com/repos/bboozzoo/mender","forks_url":"https://api.github.com/repos/bboozzoo/mender/forks","keys_url":"https://api.github.com/repos/bboozzoo/mender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bboozzoo/mender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bboozzoo/mender/teams","hooks_url":"https://api.github.com/repos/bboozzoo/mender/hooks","issue_events_url":"https://api.github.com/repos/bboozzoo/mender/issues/events{/number}","events_url":"https://api.github.com/repos/bboozzoo/mender/events","assignees_url":"https://api.github.com/repos/bboozzoo/mender/assignees{/user}","branches_url":"https://api.github.com/repos/bboozzoo/mender/branches{/branch}","tags_url":"https://api.github.com/repos/bboozzoo/mender/tags","blobs_url":"https://api.github.com/repos/bboozzoo/mender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bboozzoo/mender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bboozzoo/mender/git/refs{/sha}","trees_url":"https://api.github.com/repos/bboozzoo/mender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bboozzoo/mender/statuses/{sha}","languages_url":"https://api.github.com/repos/bboozzoo/mender/languages","stargazers_url":"https://api.github.com/repos/bboozzoo/mender/stargazers","contributors_url":"https://api.github.com/repos/bboozzoo/mender/contributors","subscribers_url":"https://api.github.com/repos/bboozzoo/mender/subscribers","subscription_url":"https://api.github.com/repos/bboozzoo/mender/subscription","commits_url":"https://api.github.com/repos/bboozzoo/mender/commits{/sha}","git_commits_url":"https://api.github.com/repos/bboozzoo/mender/git/commits{/sha}","comments_url":"https://api.github.com/repos/bboozzoo/mender/comments{/number}","issue_comment_url":"https://api.github.com/repos/bboozzoo/mender/issues/comments{/number}","contents_url":"https://api.github.com/repos/bboozzoo/mender/contents/{+path}","compare_url":"https://api.github.com/repos/bboozzoo/mender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bboozzoo/mender/merges","archive_url":"https://api.github.com/repos/bboozzoo/mender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bboozzoo/mender/downloads","issues_url":"https://api.github.com/repos/bboozzoo/mender/issues{/number}","pulls_url":"https://api.github.com/repos/bboozzoo/mender/pulls{/number}","milestones_url":"https://api.github.com/repos/bboozzoo/mender/milestones{/number}","notifications_url":"https://api.github.com/repos/bboozzoo/mender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bboozzoo/mender/labels{/name}","releases_url":"https://api.github.com/repos/bboozzoo/mender/releases{/id}","deployments_url":"https://api.github.com/repos/bboozzoo/mender/deployments","created_at":"2016-05-06T09:20:01Z","updated_at":"2016-05-06T09:20:02Z","pushed_at":"2016-06-30T08:30:54Z","git_url":"git://github.com/bboozzoo/mender.git","ssh_url":"git@github.com:bboozzoo/mender.git","clone_url":"https://github.com/bboozzoo/mender.git","svn_url":"https://github.com/bboozzoo/mender","homepage":"https://mender.io","size":896,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mendersoftware:master","ref":"master","sha":"acba387edfab2d37ac07e338b0fa642019c943ec","user":{"login":"mendersoftware","id":15040539,"avatar_url":"https://avatars.githubusercontent.com/u/15040539?v=3","gravatar_id":"","url":"https://api.github.com/users/mendersoftware","html_url":"https://github.com/mendersoftware","followers_url":"https://api.github.com/users/mendersoftware/followers","following_url":"https://api.github.com/users/mendersoftware/following{/other_user}","gists_url":"https://api.github.com/users/mendersoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/mendersoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendersoftware/subscriptions","organizations_url":"https://api.github.com/users/mendersoftware/orgs","repos_url":"https://api.github.com/users/mendersoftware/repos","events_url":"https://api.github.com/users/mendersoftware/events{/privacy}","received_events_url":"https://api.github.com/users/mendersoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":47542798,"name":"mender","full_name":"mendersoftware/mender","owner":{"login":"mendersoftware","id":15040539,"avatar_url":"https://avatars.githubusercontent.com/u/15040539?v=3","gravatar_id":"","url":"https://api.github.com/users/mendersoftware","html_url":"https://github.com/mendersoftware","followers_url":"https://api.github.com/users/mendersoftware/followers","following_url":"https://api.github.com/users/mendersoftware/following{/other_user}","gists_url":"https://api.github.com/users/mendersoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/mendersoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendersoftware/subscriptions","organizations_url":"https://api.github.com/users/mendersoftware/orgs","repos_url":"https://api.github.com/users/mendersoftware/repos","events_url":"https://api.github.com/users/mendersoftware/events{/privacy}","received_events_url":"https://api.github.com/users/mendersoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mendersoftware/mender","description":"Mender over-the-air software updates.","fork":false,"url":"https://api.github.com/repos/mendersoftware/mender","forks_url":"https://api.github.com/repos/mendersoftware/mender/forks","keys_url":"https://api.github.com/repos/mendersoftware/mender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mendersoftware/mender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mendersoftware/mender/teams","hooks_url":"https://api.github.com/repos/mendersoftware/mender/hooks","issue_events_url":"https://api.github.com/repos/mendersoftware/mender/issues/events{/number}","events_url":"https://api.github.com/repos/mendersoftware/mender/events","assignees_url":"https://api.github.com/repos/mendersoftware/mender/assignees{/user}","branches_url":"https://api.github.com/repos/mendersoftware/mender/branches{/branch}","tags_url":"https://api.github.com/repos/mendersoftware/mender/tags","blobs_url":"https://api.github.com/repos/mendersoftware/mender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mendersoftware/mender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mendersoftware/mender/git/refs{/sha}","trees_url":"https://api.github.com/repos/mendersoftware/mender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mendersoftware/mender/statuses/{sha}","languages_url":"https://api.github.com/repos/mendersoftware/mender/languages","stargazers_url":"https://api.github.com/repos/mendersoftware/mender/stargazers","contributors_url":"https://api.github.com/repos/mendersoftware/mender/contributors","subscribers_url":"https://api.github.com/repos/mendersoftware/mender/subscribers","subscription_url":"https://api.github.com/repos/mendersoftware/mender/subscription","commits_url":"https://api.github.com/repos/mendersoftware/mender/commits{/sha}","git_commits_url":"https://api.github.com/repos/mendersoftware/mender/git/commits{/sha}","comments_url":"https://api.github.com/repos/mendersoftware/mender/comments{/number}","issue_comment_url":"https://api.github.com/repos/mendersoftware/mender/issues/comments{/number}","contents_url":"https://api.github.com/repos/mendersoftware/mender/contents/{+path}","compare_url":"https://api.github.com/repos/mendersoftware/mender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mendersoftware/mender/merges","archive_url":"https://api.github.com/repos/mendersoftware/mender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mendersoftware/mender/downloads","issues_url":"https://api.github.com/repos/mendersoftware/mender/issues{/number}","pulls_url":"https://api.github.com/repos/mendersoftware/mender/pulls{/number}","milestones_url":"https://api.github.com/repos/mendersoftware/mender/milestones{/number}","notifications_url":"https://api.github.com/repos/mendersoftware/mender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mendersoftware/mender/labels{/name}","releases_url":"https://api.github.com/repos/mendersoftware/mender/releases{/id}","deployments_url":"https://api.github.com/repos/mendersoftware/mender/deployments","created_at":"2015-12-07T09:36:43Z","updated_at":"2016-05-11T10:44:26Z","pushed_at":"2016-06-30T07:35:46Z","git_url":"git://github.com/mendersoftware/mender.git","ssh_url":"git@github.com:mendersoftware/mender.git","clone_url":"https://github.com/mendersoftware/mender.git","svn_url":"https://github.com/mendersoftware/mender","homepage":"https://mender.io","size":898,"stargazers_count":10,"watchers_count":10,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mendersoftware/mender/pulls/77"},"html":{"href":"https://github.com/mendersoftware/mender/pull/77"},"issue":{"href":"https://api.github.com/repos/mendersoftware/mender/issues/77"},"comments":{"href":"https://api.github.com/repos/mendersoftware/mender/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/mendersoftware/mender/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/mendersoftware/mender/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mendersoftware/mender/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/mendersoftware/mender/statuses/b6d6b54311b7a477f5325c231bcac0e4c9aa4b74"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":127,"deletions":8,"changed_files":4}}
{"actor":{"display_login":"bboozzoo"}}