{"action":"opened","number":16,"pull_request":{"created_at":"2011-11-26T16:35:09Z","review_comments":0,"state":"open","patch_url":"https://github.com/philnash/bitly/pull/16.patch","changed_files":5,"updated_at":"2011-11-26T16:35:09Z","_links":{"review_comments":{"href":"https://api.github.com/repos/philnash/bitly/pulls/16/comments"},"comments":{"href":"https://api.github.com/repos/philnash/bitly/issues/16/comments"},"html":{"href":"https://github.com/philnash/bitly/pull/16"},"self":{"href":"https://api.github.com/repos/philnash/bitly/pulls/16"}},"user":{"gravatar_id":"57664b723fbae25e154bae729361c1da","id":229910,"url":"https://api.github.com/users/sylturner","login":"sylturner","avatar_url":"https://secure.gravatar.com/avatar/57664b723fbae25e154bae729361c1da?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"issue_url":"https://github.com/philnash/bitly/issues/16","comments":0,"deletions":1,"body":"I added the optional ability to set username, api_key, and api_version through a Rails initializer. If configured that way, you get the client with the method `Bitly.client`\r\n\r\nAdded the `Config` class, added the `client` method in `Bitly`, updated the readme, and added some tests.","merged":false,"mergeable":null,"commits":4,"id":530589,"merged_by":null,"base":{"user":{"gravatar_id":"8ec1383b240b5ba15ffb9743fceb3c0e","id":31462,"url":"https://api.github.com/users/philnash","login":"philnash","avatar_url":"https://secure.gravatar.com/avatar/8ec1383b240b5ba15ffb9743fceb3c0e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2009-01-20T23:40:41Z","pushed_at":"2011-11-10T02:41:09Z","private":false,"clone_url":"https://github.com/philnash/bitly.git","updated_at":"2011-11-26T15:10:50Z","master_branch":null,"svn_url":"https://svn.github.com/philnash/bitly","name":"bitly","watchers":180,"language":"Ruby","forks":28,"owner":{"gravatar_id":"8ec1383b240b5ba15ffb9743fceb3c0e","id":31462,"url":"https://api.github.com/users/philnash","login":"philnash","avatar_url":"https://secure.gravatar.com/avatar/8ec1383b240b5ba15ffb9743fceb3c0e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":111404,"homepage":"http://github.com/philnash/bitly","description":"A ruby wrapper for the bit.ly API","git_url":"git://github.com/philnash/bitly.git","html_url":"https://github.com/philnash/bitly","size":736,"ssh_url":"git@github.com:philnash/bitly.git","fork":false,"url":"https://api.github.com/repos/philnash/bitly","open_issues":5},"sha":"fc3132dd67b02bad04b47f6497ce7cee182a62d0","ref":"master","label":"philnash:master"},"number":16,"additions":80,"head":{"user":{"gravatar_id":"57664b723fbae25e154bae729361c1da","id":229910,"url":"https://api.github.com/users/sylturner","login":"sylturner","avatar_url":"https://secure.gravatar.com/avatar/57664b723fbae25e154bae729361c1da?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-11-26T15:10:50Z","pushed_at":"2011-11-26T16:28:50Z","private":false,"clone_url":"https://github.com/sylturner/bitly.git","updated_at":"2011-11-26T16:28:50Z","master_branch":null,"svn_url":"https://svn.github.com/sylturner/bitly","name":"bitly","watchers":1,"language":"Ruby","forks":0,"owner":{"gravatar_id":"57664b723fbae25e154bae729361c1da","id":229910,"url":"https://api.github.com/users/sylturner","login":"sylturner","avatar_url":"https://secure.gravatar.com/avatar/57664b723fbae25e154bae729361c1da?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2856047,"homepage":"http://github.com/philnash/bitly","description":"A ruby wrapper for the bit.ly API","git_url":"git://github.com/sylturner/bitly.git","html_url":"https://github.com/sylturner/bitly","size":576,"ssh_url":"git@github.com:sylturner/bitly.git","fork":true,"url":"https://api.github.com/repos/sylturner/bitly","open_issues":0},"sha":"5a66b03151b34bf050c10abf214c661b7e9a4809","ref":"master","label":"sylturner:master"},"title":"Configure bitly through initializer","closed_at":null,"html_url":"https://github.com/philnash/bitly/pull/16","diff_url":"https://github.com/philnash/bitly/pull/16.diff","url":"https://api.github.com/repos/philnash/bitly/pulls/16","merged_at":null}}