$ 0 0 Never mind - I figured it out by adding some logging into the script. Turns out I wasn't passing a proper URL to the function.