Make GetAndFlatten public

This allows us to tweak the accepts header and build up
our own requests without duplicating this logic.