def __init__(self, apikey=None, conf={}):
if apikey is None and YP_APIKEY in conf:<EOL><INDENT>apikey = conf[YP_APIKEY]<EOL><DEDENT>assert apikey, "<STR_LIT>"<EOL>self._ypconf = _YunpianConf().custom_conf(conf).custom_apikey(apikey)<EOL>self._api = _ApiFactory(self)<EOL>
Args:
    apikey: apikey
    conf: custom config to initialize ypconf,keys like yp.*