init api client