# File lib/rubytter/oauth_rubytter.rb, line 22
  def structize(res)
    json_data = JSON.parse(res.body)
    case res.code
    when "200"
      self.class.structize(json_data)
    else
      raise APIError.new(json_data['error'], res)
    end
  end