Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
mk_methods.pl - generate UltraDNS::Methods module by parsing the specification
SYNOPSIS
mk_methods.pl NUS_API_XML.txt
DESCRIPTION
Parses a plain text version of the UltraDNS Transaction Protocol document (derived from http://www.ultradns.net/api/NUS_API_XML.pdf) and rewrites the UltraDNS::Methods module with descriptions of the methods and their arguments.
You do not need to run this unless you need to update the code to handle a newer version of the API.
Converting PDF To Text
The NUS_API_XML.txt isn't included in the distribution for copyright reasons. This is the procedure I used to generate the current UltraDNS::Methods module:
- Open http://www.ultradns.net/api/NUS_API_XML.pdf using Preview on Mac OSX
- Select and copy all the text
- Paste the text into the TextEdit application
- Select "Make Plain Text" from the Format menu
- Save as NUS_API_XML.txt
- Run mk_methods.pl NUS_API_XML.txt in the top directory of the distribution
If you use a different method to perform the conversion then it's likely that you'll need to make slight changes to this script.