use ZoneEdit; $ZoneEdit::USERNAME = 'demo'; # set to an admin user/password set aside for this API $ZoneEdit::PASSWORD = ',password'; print ZoneEdit::add_user('zfred', 'pass556hy'); # creates a user called fred print ZoneEdit::add_user_zone('zfred', 'test-atreju.com'); # adds 'atreju.com' to freds list of zones print ZoneEdit::create_url('zfred', 'test-atreju.com', 'VIEW'); # creates a single signon link for fred print ZoneEdit::del_record('zfred', 'test-atreju.com', 'WP', 'www'); # adds an IP address to atraju.com print ZoneEdit::del_record('zfred', 'test-atreju.com', 'WP', ''); # adds an IP address to atraju.com print ZoneEdit::add_record('zfred', 'test-atreju.com', 'A', 'www', '1.2.3.4'); # adds an IP address to atraju.com print ZoneEdit::view_zone('zfred', 'test-atreju.com'); # views the zone print ZoneEdit::view_record('zfred', 'test-atreju.com'); # views the created records print ZoneEdit::del_user('zfred'); # deletes fred