Initializes the client with a Config instance.
the configuration the api instance uses for every subsequent request