integration: use client to do requests

prepare for #1399