You need to sign in to do that
Don't have an account?
irfan aziz
Is it possible to do the SOAP API login with requests python library?
Trying to do the curl bulk steps in python. I can do the login via postman which returns the Session ID but when i try to run the code in python, it keeps executing without finnishing nor giving any error. However, i am able to create a job using the session id from the postman post.
Here is the code. Any suggestion?
Here is the code. Any suggestion?
import requests as r url1='https://login.salesforce.com/services/Soap/u/39.0' header1={'Content-Type':'text/xml; charset=UTF-8','SOAPAction':'login'} body1=open('login.txt','r') resp1=r.post(url1,headers=header1,data=body1) print resp1.status_code
To send authenticated REST request with Python Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/120533/how-to-send-authenticated-rest-request-with-python
Hope it will be helpful.Best Regards
Rahul Kumar