Using rest_client in place of Net::HTTP