def photos(page = 1, per_page = 10)
      params = {
        page:     page,
        per_page: per_page
      }

      list = JSON.parse(connection.get("/users/#{username}/photos", params).body)
      list.map do |photo|
        Unsplash::Photo.new photo.to_hash
      end
    end
def photos(page = 1, per_page = 10)
      params = {
        page:     page,
        per_page: per_page
      }

      list = JSON.parse(connection.get("/users/#{username}/photos", params).body)
      list.map do |photo|
        Unsplash::Photo.new photo.to_hash
      end
    end
Get a list of photos uploaded by the user.
 @param page  [Integer] Which page of results to return.
 @param per_page [Integer] The number of results per page.
 @return [Array] a list of +Unsplash::Photo+ objects.