Skip to content

Instantly share code, notes, and snippets.

@ilaif
Created April 16, 2019 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilaif/3bb75f6785134c36b965776471667d3b to your computer and use it in GitHub Desktop.
Save ilaif/3bb75f6785134c36b965776471667d3b to your computer and use it in GitHub Desktop.
instrument-everything-blog-clone-fastly-service
def clone_version(service_id, version):
url = 'https://api.fastly.com/service/{}/version/{}/clone'.format(service_id, version)
response = requests.request('PUT', url, headers={...})
return response.json()['number']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment