Construction of an api client library