def __init__(self, apikey, secret=None, root=None): self.conn = ParselyAPIConnection(apikey, secret=secret, root=root) if not self.authenticated(): raise ValueError("Authentication failed")