Python module to wrap the Salesforce APIs
Project description
PySalesforce
The purpose of this project is to replicate the Salesforce REST APIs in a Python library.
Usage
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.
Salesforce Documentation
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
- Bulk 2.0 API
- Chatter REST API
- Bulk API Trailhead Example
Notes
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.
You can run this test to check if your machine is up to date with SSL. Make sure it can run TLS 1.1 or 1.2
import WebService response = WebService.Tools.getHTResponse("https://www.howsmyssl.com/a/check", {}) print(response.text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pysalesforceutils-1.0.10.tar.gz
.
File metadata
- Download URL: pysalesforceutils-1.0.10.tar.gz
- Upload date:
- Size: 212.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408b66b8241c274c92c56d3edefd54cc6af325224258ac496f13883b0d3cf640 |
|
MD5 | a23915ce9c399c93db6b36a927557f49 |
|
BLAKE2b-256 | 99734851541e7ecd073513783f88ebd464ec7f9136f99f9da4f84f7081297666 |