{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4","id":47456214,"html_url":"https://github.com/blueboxgroup/cdnetworks-client/pull/4","diff_url":"https://github.com/blueboxgroup/cdnetworks-client/pull/4.diff","patch_url":"https://github.com/blueboxgroup/cdnetworks-client/pull/4.patch","issue_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/4","number":4,"state":"open","locked":false,"title":"Statistics bandwidth usage","user":{"login":"wstrinz","id":1562035,"avatar_url":"https://avatars.githubusercontent.com/u/1562035?v=3","gravatar_id":"","url":"https://api.github.com/users/wstrinz","html_url":"https://github.com/wstrinz","followers_url":"https://api.github.com/users/wstrinz/followers","following_url":"https://api.github.com/users/wstrinz/following{/other_user}","gists_url":"https://api.github.com/users/wstrinz/gists{/gist_id}","starred_url":"https://api.github.com/users/wstrinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstrinz/subscriptions","organizations_url":"https://api.github.com/users/wstrinz/orgs","repos_url":"https://api.github.com/users/wstrinz/repos","events_url":"https://api.github.com/users/wstrinz/events{/privacy}","received_events_url":"https://api.github.com/users/wstrinz/received_events","type":"User","site_admin":false},"body":"This PR provides a wrapping function for the OpenAPI v2 statistics \"edge traffic\" endpoint for determining bandwidth usage.\r\n\r\nTo get this working, I also had to build in support for the new session based login system in OpenAPI v2, and the method of fetching and using API keys during a given session. These are working and tested, but may need some revision and robustness refactoring as they include a few hacks intended to avoid changing the gem's interface and basic behaviors too much.","created_at":"2015-10-12T19:35:47Z","updated_at":"2015-10-12T19:35:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4/commits","review_comments_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4/comments","review_comment_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/4/comments","statuses_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/statuses/469f4eb78d55e01b122b699eb70c2bf83d1c769b","head":{"label":"wstrinz:statistics-bandwidth-usage","ref":"statistics-bandwidth-usage","sha":"469f4eb78d55e01b122b699eb70c2bf83d1c769b","user":{"login":"wstrinz","id":1562035,"avatar_url":"https://avatars.githubusercontent.com/u/1562035?v=3","gravatar_id":"","url":"https://api.github.com/users/wstrinz","html_url":"https://github.com/wstrinz","followers_url":"https://api.github.com/users/wstrinz/followers","following_url":"https://api.github.com/users/wstrinz/following{/other_user}","gists_url":"https://api.github.com/users/wstrinz/gists{/gist_id}","starred_url":"https://api.github.com/users/wstrinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstrinz/subscriptions","organizations_url":"https://api.github.com/users/wstrinz/orgs","repos_url":"https://api.github.com/users/wstrinz/repos","events_url":"https://api.github.com/users/wstrinz/events{/privacy}","received_events_url":"https://api.github.com/users/wstrinz/received_events","type":"User","site_admin":false},"repo":{"id":41047933,"name":"cdnetworks-client","full_name":"wstrinz/cdnetworks-client","owner":{"login":"wstrinz","id":1562035,"avatar_url":"https://avatars.githubusercontent.com/u/1562035?v=3","gravatar_id":"","url":"https://api.github.com/users/wstrinz","html_url":"https://github.com/wstrinz","followers_url":"https://api.github.com/users/wstrinz/followers","following_url":"https://api.github.com/users/wstrinz/following{/other_user}","gists_url":"https://api.github.com/users/wstrinz/gists{/gist_id}","starred_url":"https://api.github.com/users/wstrinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstrinz/subscriptions","organizations_url":"https://api.github.com/users/wstrinz/orgs","repos_url":"https://api.github.com/users/wstrinz/repos","events_url":"https://api.github.com/users/wstrinz/events{/privacy}","received_events_url":"https://api.github.com/users/wstrinz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wstrinz/cdnetworks-client","description":"API wrapper for CDNetworks APIs","fork":true,"url":"https://api.github.com/repos/wstrinz/cdnetworks-client","forks_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/forks","keys_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/teams","hooks_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/hooks","issue_events_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/issues/events{/number}","events_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/events","assignees_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/assignees{/user}","branches_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/branches{/branch}","tags_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/tags","blobs_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/statuses/{sha}","languages_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/languages","stargazers_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/stargazers","contributors_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/contributors","subscribers_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/subscribers","subscription_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/subscription","commits_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/contents/{+path}","compare_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/merges","archive_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/downloads","issues_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/issues{/number}","pulls_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/pulls{/number}","milestones_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/milestones{/number}","notifications_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/labels{/name}","releases_url":"https://api.github.com/repos/wstrinz/cdnetworks-client/releases{/id}","created_at":"2015-08-19T17:04:23Z","updated_at":"2015-08-19T17:04:23Z","pushed_at":"2015-10-12T18:43:35Z","git_url":"git://github.com/wstrinz/cdnetworks-client.git","ssh_url":"git@github.com:wstrinz/cdnetworks-client.git","clone_url":"https://github.com/wstrinz/cdnetworks-client.git","svn_url":"https://github.com/wstrinz/cdnetworks-client","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"blueboxgroup:master","ref":"master","sha":"a9a4e976699ae99adb12981a6a68fc230841f844","user":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":12223826,"name":"cdnetworks-client","full_name":"blueboxgroup/cdnetworks-client","owner":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueboxgroup/cdnetworks-client","description":"API wrapper for CDNetworks APIs","fork":false,"url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client","forks_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/forks","keys_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/teams","hooks_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/hooks","issue_events_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/events{/number}","events_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/events","assignees_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/assignees{/user}","branches_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/branches{/branch}","tags_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/tags","blobs_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/statuses/{sha}","languages_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/languages","stargazers_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/stargazers","contributors_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/contributors","subscribers_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/subscribers","subscription_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/subscription","commits_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/contents/{+path}","compare_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/merges","archive_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/downloads","issues_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues{/number}","pulls_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls{/number}","milestones_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/milestones{/number}","notifications_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/labels{/name}","releases_url":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/releases{/id}","created_at":"2013-08-19T18:07:38Z","updated_at":"2015-03-08T05:30:05Z","pushed_at":"2015-08-19T17:08:12Z","git_url":"git://github.com/blueboxgroup/cdnetworks-client.git","ssh_url":"git@github.com:blueboxgroup/cdnetworks-client.git","clone_url":"https://github.com/blueboxgroup/cdnetworks-client.git","svn_url":"https://github.com/blueboxgroup/cdnetworks-client","homepage":null,"size":171,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4"},"html":{"href":"https://github.com/blueboxgroup/cdnetworks-client/pull/4"},"issue":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/4"},"comments":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/blueboxgroup/cdnetworks-client/statuses/469f4eb78d55e01b122b699eb70c2bf83d1c769b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":16,"additions":473,"deletions":64,"changed_files":7}}