The purpose of this project is to replicate the Salesforce REST APIs in a Python library.
The authentication method used in PySalesforce.Authentication.getOAuthLogin uses the Salesforce OAuth Password flow. You can choose to build and use your own authentication method, but if you want to use the OAuth flow, you'll need to create a connected app in Salesforce. YOu can do this from Setup->Create->Apps, then scroll down to the bottom and click the New button for Connected Apps. THE Callback URL is irrelavent, so you can put in anything you want. Make sure the Selected Scope OAuth Scopes = Full Access. After setting it up you'll receive a Consumer Key and Consumer Secret, which are the loginClientId and loginClientSecret parameters in the getOAuthLogin method respectively.
As I continue to update this library, I'll be adding reference links to the Salesforce documentation.
- List of Salseforce APIs
- Tooling API
- Metadata API
- Streaming API
- REST API
- Bulk API
- Chatter REST API
- Bulk API Trailhead Example
I had issues with OS X not being able to connect to any sandbox environments. The issue was related to my OpenSSL version not being up to date enough.