Skip to content

Instantly share code, notes, and snippets.

View sgwilbur's full-sized avatar
🧠
omg

Sean G Wilbur sgwilbur

🧠
omg
View GitHub Profile
@sgwilbur
sgwilbur / rtc_request_example.py
Created January 15, 2015 18:46
Rational Team Concert Python Requests example
#!/usr/bin/env python
import requests
# quiet warnings for self-signed certificates
requests.packages.urllib3.disable_warnings()
base_url = "https://server.demo.com/ccm"
auth_uri = "/authenticated/identity"
@sgwilbur
sgwilbur / ucd_upload_plugins_from_dir.py
Created March 20, 2014 02:02
Example of howto use the UCD rest api to update plugins from a directory of plugins, requires the requests library.
#!/usr/bin/env python
import os, requests, json, re
## requirements.txt:
#
# httplib2==0.8
# requests==2.0.1
# wsgiref==0.1.2
# hard coded