Ejemplo n.º 1
0
def getSalesforceSessionID():
    ## Logging in using the Salesforce-Python-SOAP-Toolkit
    ## TODO Figure out oauth2
    username, password, securitytoken = getCredentials()
    h = SforceEnterpriseClient("wsdl.jsp.xml")
    h.login(username, password, securitytoken)
    return h.getSessionId()