Skip to content

Instantly share code, notes, and snippets.

@dlitvakb
Created November 12, 2012 17:31
Show Gist options
  • Select an option

  • Save dlitvakb/4060703 to your computer and use it in GitHub Desktop.

Select an option

Save dlitvakb/4060703 to your computer and use it in GitHub Desktop.
Python, Ruby and PHP Pull Zone Creation for NetDNA's RWS
<?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'));
?>
from netdnarws import NetDNA
api = NetDNA("my_alias", "0de95ee2fa4138252c1e431c177ac14904feb56f7", "9553c35f1656f51a0e8940baff71414f")
api.post('/zones/pull.json', {'name': 'my_pullzone', 'url': 'pull.mydomain.com'})
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