Skip to content

Instantly share code, notes, and snippets.

@douglas-c-thomas
Last active February 22, 2017 18:17
Show Gist options
  • Save douglas-c-thomas/71fb3b1d4c74af5f86f86a24ad4bb706 to your computer and use it in GitHub Desktop.
Save douglas-c-thomas/71fb3b1d4c74af5f86f86a24ad4bb706 to your computer and use it in GitHub Desktop.
from simple_salesforce import Salesforce
sf = Salesforce(username='<username>', password='<password>',
security_token='<security_token>', sandbox=False)
sf_lead_response = sf.Lead.create({
'Company': 'PokitDok',
'FirstName': Doug,
'LastName': 'Thomas,
'Email': 'doug.thomas@pokitdok.com',
'Phone': '212-867-5309',
'Lead_Source_Details__c': 'LinkedIn Campaign',
'Lead_Keyword__c': 'API Clients',
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment