Connect to Salesforce REST API
Basic library for connecting to Salesforce. Can create a SOAP session and store it locally as well as connect to REST API including Chatter
from sf.Session import SoapSession
s = SoapSession(‘user’,’password’,’securitytoken’) s.get_session_id()
will get you a session id. From there, you need can create a rest client.
from sf.RestClient import RestClient
c = RestClient(session_id=s.get_session_id()) c.get_feed()
The Chatter client in this package puts these together for you and prompts you for credentials
from sf.Chatter import Chatter
c = Chatter() # will prompt you for user/pass/token and then store user/token/session id in your home directory c.get_feed()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|sf_client-0.1.3-py2.7.egg (11.4 kB) Copy SHA256 hash SHA256||Egg||2.7||Jun 26, 2014|
|sf_client-0.1.3.tar.gz (4.4 kB) Copy SHA256 hash SHA256||Source||None||Jun 26, 2014|