示例#1
0
    def __init__(self, token, ttl):
        super(_DNSimpleLexiconClient, self).__init__()

        self.provider = dnsimple.Provider({
            'auth_token': token,
            'ttl': ttl,
        })
示例#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)