{"size": 1945, "ext": "js", "max_stars_repo_path": "examples/domains/actions/retry_domain_action.js", "max_stars_repo_name": "primeminister/transip-nodejs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "examples/domains/actions/retry_domain_action.js", "max_issues_repo_name": "primeminister/transip-nodejs", "max_issues_repo_issues_event_min_datetime": "2020-12-30T22:31:20.000Z", "max_issues_repo_issues_event_max_datetime": "2020-12-30T22:31:20.000Z", "max_forks_repo_path": "examples/domains/actions/retry_domain_action.js", "max_forks_repo_name": "primeminister/transip-nodejs", "max_forks_repo_forks_event_min_datetime": "2020-08-13T10:29:29.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-13T21:07:39.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 21.1413043478, "max_line_length": 86, "alphanum_fraction": 0.5326478149}
// requires
var transip = require('../../../lib/transip.js')();

// module variables
const config = require('../../config.json');
const demo_token = config.demo_token;

const domainName = 'transipdemo.net';

var params = {
  authCode: '',
  contacts: [
    {
      type: 'registrant',
      firstName: 'John',
      lastName: 'Doe',
      companyName: 'Example B.V.',
      companyKvk: '83057825',
      companyType: 'BV',
      street: 'Easy street',
      number: '12',
      postalCode: '1337 XD',
      city: 'Leiden',
      phoneNumber: '+31 715241919',
      faxNumber: '+31 715241919',
      email: 'example@example.com',
      country: 'nl'
    },
    {
      type: 'administrative',
      firstName: 'John',
      lastName: 'Doe',
      companyName: 'Example B.V.',
      companyKvk: '83057825',
      companyType: 'BV',
      street: 'Easy street',
      number: '12',
      postalCode: '1337 XD',
      city: 'Leiden',
      phoneNumber: '+31 715241919',
      faxNumber: '+31 715241919',
      email: 'example@example.com',
      country: 'nl'
  },
  {
      type: 'technical',
      firstName: 'John',
      lastName: 'Doe',
      companyName: 'Example B.V.',
      companyKvk: '83057825',
      companyType: 'BV',
      street: 'Easy street',
      number: '12',
      postalCode: '1337 XD',
      city: 'Leiden',
      phoneNumber: '+31 715241919',
      faxNumber: '+31 715241919',
      email: 'example@example.com',
      country: 'nl'
    }
  ],
  nameservers: [
    {
      hostname: 'ns1.example.com',
      ipv4: '',
      ipv6: '',
    },
    {
      hostname: 'ns2.example.com',
      ipv4: '',
      ipv6: '',
    }
  ],
  dnsEntries: [
    {
      name: 'www',
      expire: '86400',
      type: 'A',
      content: '127.0.0.1'
    }
  ]
};

transip.domains.actions.retry(params, domainName, demo_token, function(err,response) {
  if (err) {
    return console.log(err);
  }
  else {
    console.log(response);
  }
});
