def get_github_auth_id(username, password, note):
 response = requests.get(u'https://api.github.com/authorizations', auth=(username, password), headers={u'User-Agent': u'edx-release'})
 if (not response.ok):
  message = response.json()[u'message']
  raise requests.exceptions.RequestException(message)
 for auth_token in response.json():
  if (auth_token[u'note'] == u'edx-release'):
   return auth_token[u'id']
 return None

def get_github_auth_id ( username , password , note ) : response = requests . get ( u'https://api.github.com/authorizations' , auth = ( username , password ) , headers = { u'User-Agent' : u'edx-release' } ) if ( not response . ok ) : message = response . json ( ) [ u'message' ] raise requests . exceptions . RequestException ( message ) for auth_token in response . json ( ) : if ( auth_token [ u'note' ] == u'edx-release' ) : return auth_token [ u'id' ] return None
return the id associated with the github auth token with the given note .