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
Built Distribution
File details
Details for the file pysalesforceutils-1.0.1.tar.gz
.
File metadata
- Download URL: pysalesforceutils-1.0.1.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6622c5071a1a5516d22eafbca913879154a391e5abae577d4eb03dbf93f80458 |
|
MD5 | 7914d7a14933b9dff5c3802482de02e9 |
|
BLAKE2b-256 | 40c3d2e973110f448e2173b2fa849360a7927d40c7fc3737f572b07d7a51bdec |
File details
Details for the file pysalesforceutils-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pysalesforceutils-1.0.1-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c71e876fe1fc6091190f113d4244cdb1c245e84ddeeba14dc5b91e79c8a13d9 |
|
MD5 | da62bff7f3c8ef4eb14008e843d63c98 |
|
BLAKE2b-256 | 41e4e0ed4817978d600d0283cda8cbe56c5ef0a438df4748a1238e784f67874d |