Create records of specific domain.

    Arguments:

        server: TonicDNS API server
        token:  TonicDNS API authentication token
        domain: Specify domain name
        data:   Create records

    ContentType: application/json
    x-authentication-token: token

def create_records(server, token, domain, data):
    """Create records of specific domain.

    Arguments:

        server: TonicDNS API server
        token:  TonicDNS API authentication token
        domain: Specify domain name
        data:   Create records

    ContentType: application/json
    x-authentication-token: token
    """
    method = 'PUT'
    uri = 'https://' + server + '/zone/' + domain
    for i in data:
        connect.tonicdns_client(uri, method, token, i)