Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (17 sloc) 577 Bytes
#!/usr/bin/env python
import sys
import urllib2
import urllib
import os
import json
username = os.getenv('U')
password = os.getenv('P')
# will throw if it fails
result = json.loads(urllib2.urlopen('' % (username, username, password)).read())
orgs = json.loads(urllib2.urlopen('' % username).read())
for org in orgs.get('organizations'):
if org.get('login') == 'CyanogenMod':
print "success"
print "not a member of org"