Skip to content

Instantly share code, notes, and snippets.

@rogaha
Created March 28, 2014 22:14
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 rogaha/9844093 to your computer and use it in GitHub Desktop.
Save rogaha/9844093 to your computer and use it in GitHub Desktop.
self.auth = ('testuser', 'testuser')
data = {'callback_url': 'http://localhost:8003/hooks/highland/build', 'source_type': 'git', 'dockerfile_location': u'', 'docker_tag_name': u'latest', 'source_branch': u'master', 'docker_repo_slug': u'rogaha/docker-desktop', 'ssh_public': None, 'ssh_private': None, 'source_url': u'git://github.com/rogaha/docker-desktop.git'}
headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
r = requests.post(url, data=json.dumps(data), headers=headers, auth=self.auth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment