```ruby
require 'httparty'

module Scrapr
  # You could hardcode this or grab it from an
  # Environment Variable with ENV['ACCESS_TOKEN']

  # Either way, at least you're not using a real password. :)
  ACCESS_TOKEN = ''

  class Github
    include HTTParty
    base_uri 'https://api.github.com'

    def initialize
      @auth = { "Authorization" => "token #{ACCESS_TOKEN}",
                "User-Agent" => "HTTParty" }
    end

    def get_user(username)
      self.class.get("/users/#{username}", headers: @auth)
    end

    def get_contributions(owner, repo)
      self.class.get("/repos/#{owner}/#{repo}/stats/contributors", headers: @auth)
    end
  end
end
```

Add OAuth example from class.
user
```ruby
require 'httparty'

module Scrapr
  # You could hardcode this or grab it from an
  # Environment Variable with ENV['ACCESS_TOKEN']

  # Either way, at least you're not using a real password. :)
  ACCESS_TOKEN = ENV['ACCESS_TOKEN']

  class Github
    include HTTParty
    base_uri 'https://api.github.com'

    def initialize
      @headers = { "Authorization" => "token #{ACCESS_TOKEN}",
                   "User-Agent" => "HTTParty" }
    end

    def get_user(username)
      self.class.get("/users/#{username}", headers: @headers)
    end

    def get_contributions(owner, repo, page=1)
      params = {
        page: page
      }
      options = {
        headers: @headers,
        query: params
      }
      self.class.get("/repos/#{owner}/#{repo}/stats/contributors", options)
    end
  end
end
```
assistant