Skip to content

Instantly share code, notes, and snippets.

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

@mario
mario / transfer_slicehost.py
Created June 1, 2012 21:59 — forked from tarkatronic/transfer_slicehost.py
Transferring DNS records from Slicehost to 6sync via API calls
from pyactiveresource.activeresource import ActiveResource
from biscuit.api import APIHandler
ip_translations = {'aaa.bbb.ccc.ddd': 'xxx.yyy.zzz.qqq',
'eee.fff.ggg.hhh': 'ppp.qqq.rrr.sss'}
slice_api_key = 'xxxxx_YOUR_SLICEHOST_API_KEY_HERE_xxxxx'
slice_api_url = 'https://%s@api.slicehost.com/' % slice_api_key