This is Salesforce Python SDK for REST and SOAP APIs
Project description
salesforce-python-sdk
=====================
Salesforce Python SDK supports Salesforce REST and Partner SOAP APIs.
Install
-------
python setup.py install
Example
-------
import salesforce as sf
sfdc = sf.Salesforce()
sfdc.authenticate(client_id=client_id,
client_secret=client_secret,
username=username,
password=password)
#SOAP call
sfdc.Contact.create(
[
{
'FirstName': 'John',
'LastName': 'Varges',
},
{
'FirstName': 'Clark',
'LastName': 'Fisher',
}
],
soap=True)
#REST Call
sfdc.Contact.create({
'FirstName': 'John',
'LastName': 'Varges'})
You can switch between REST and SOAP by passing soap parameter.
Supported APIs
--------------
get_auth_uri(self, **kwargs)
authenticate(self, soap=None, **kwargs)
query(self, query_string, soap=None)
query_all(self, query_string, soap=None)
query_more(self, query_url, soap=None)
search(self, search_string, soap=None)
get(self, get_url, params=None, soap=None, **kwargs)
post(self, post_url, data, soap=None)
On sObject:
describe(self, soap=None)
create(self, data, soap=None)
update(self, data, soap=None)
delete(self, record_id, soap=None)
post(self, data, record_id=None, soap=None)
get(self, record_id=None, params=None, soap=None)
=====================
Salesforce Python SDK supports Salesforce REST and Partner SOAP APIs.
Install
-------
python setup.py install
Example
-------
import salesforce as sf
sfdc = sf.Salesforce()
sfdc.authenticate(client_id=client_id,
client_secret=client_secret,
username=username,
password=password)
#SOAP call
sfdc.Contact.create(
[
{
'FirstName': 'John',
'LastName': 'Varges',
},
{
'FirstName': 'Clark',
'LastName': 'Fisher',
}
],
soap=True)
#REST Call
sfdc.Contact.create({
'FirstName': 'John',
'LastName': 'Varges'})
You can switch between REST and SOAP by passing soap parameter.
Supported APIs
--------------
get_auth_uri(self, **kwargs)
authenticate(self, soap=None, **kwargs)
query(self, query_string, soap=None)
query_all(self, query_string, soap=None)
query_more(self, query_url, soap=None)
search(self, search_string, soap=None)
get(self, get_url, params=None, soap=None, **kwargs)
post(self, post_url, data, soap=None)
On sObject:
describe(self, soap=None)
create(self, data, soap=None)
update(self, data, soap=None)
delete(self, record_id, soap=None)
post(self, data, record_id=None, soap=None)
get(self, record_id=None, params=None, soap=None)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for salesforce-python-sdk-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4458f48c278e39ec27d725f3867c0e756c7e77df91d905e67f625113b2d41d4 |
|
MD5 | 10bafc7ca432fd17e4ce51adebd6723b |
|
BLAKE2b-256 | e3bd527aab3441a85aee5e165c8b3a3797598c37a4c90d1f6cfeee555fa2fbfd |