def __init__(self, api_token, api_secret, ttl):
        super(_GehirnLexiconClient, self).__init__()

        self.provider = gehirn.Provider({
            'auth_token': api_token,
            'auth_secret': api_secret,
            'ttl': ttl,
        })
Ejemplo n.º 2
0
    def __init__(self, api_token, api_secret, ttl):
        super(_GehirnLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config('gehirn', {
            'ttl': ttl,
        }, {
            'auth_token': api_token,
            'auth_secret': api_secret,
        })

        self.provider = gehirn.Provider(config)
Ejemplo n.º 3
0
    def __init__(self, api_token: str, api_secret: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'gehirn', {
                'ttl': ttl,
            }, {
                'auth_token': api_token,
                'auth_secret': api_secret,
            })

        self.provider = gehirn.Provider(config)