Exemplo n.º 1
0
    def __init__(self, token, ttl):
        super(_DNSimpleLexiconClient, self).__init__()

        self.provider = dnsimple.Provider({
            'auth_token': token,
            'ttl': ttl,
        })
Exemplo n.º 2
0
    def __init__(self, token, ttl):
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('dnssimple', {
            'ttl': ttl,
        }, {
            'auth_token': token,
        })

        self.provider = dnsimple.Provider(config)