Created
November 12, 2012 17:31
-
-
Save dlitvakb/4060703 to your computer and use it in GitHub Desktop.
Python, Ruby and PHP Pull Zone Creation for NetDNA's RWS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once('NetDNA.php'); | |
| $api = new NetDNA("my_alias", "0de95ee2fa4138252c1e431c177ac14904feb56f7", "9553c35f1656f51a0e8940baff71414f"); | |
| $api->post('/zones/pull.json', array('name' => 'my_pullzone', 'url' => 'pull.mydomain.com')); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from netdnarws import NetDNA | |
| api = NetDNA("my_alias", "0de95ee2fa4138252c1e431c177ac14904feb56f7", "9553c35f1656f51a0e8940baff71414f") | |
| api.post('/zones/pull.json', {'name': 'my_pullzone', 'url': 'pull.mydomain.com'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'netdnarws' | |
| api = NetDNARWS::NetDNA.new("my_alias", "0de95ee2fa4138252c1e431c177ac14904feb56f7", "9553c35f1656f51a0e8940baff71414f") | |
| api.post('/zones/pull.json', {'name' => 'my_pullzone', 'url' => 'pull.mydomain.com'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment