A python client for Salesforce
Project description
Python Salesforce Client
A python client for the Salesforce API.
Getting Started
pip install SalesforceClient
Usage
SalesforceClient must be initialized with a login_endpoint, username, password, token, client_id, and client_secret. Once intialized, you can use any of the provided functions to return a requests response object.
Example
from SalesforceClient import SalesforceClient
login_endpoint = "https://login.salesforce.com/services/oauth2/token"
username = "my_username"
password = "my_password"
token = "my_security_token"
client_id = "my_client_id"
client_secret = "my_client_secret"
client = SalesforceClient(login_endpoint, username, password, token, client_id, client_secret)
response = client.login()
if response.status_code == 200:
print("Login Success:", response.text)
query_response = client.query("select Id, Name from User")
print("Users:", query_response.text)
else:
print("Salesforce login failed:", 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 SalesforceClient-1.0.1a2.tar.gz
.
File metadata
- Download URL: SalesforceClient-1.0.1a2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6422914d43e5a3f22628fd5bc0a87d01565a6e0cf2f4d3790365e354e04933 |
|
MD5 | ea7ad73fbd853921fbf97a6ca7a1dca6 |
|
BLAKE2b-256 | d17330a066983cfbde6143661ac47e697156e6417d3d967a104ce62bdaaac441 |
File details
Details for the file SalesforceClient-1.0.1a2-py3-none-any.whl
.
File metadata
- Download URL: SalesforceClient-1.0.1a2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6b81e3deebe9731ed6ee8b1f5a72eef0e7cd3172d0e042f681435a6bfe6d19 |
|
MD5 | d0dfd8f166042ae4821173bb3b7450dd |
|
BLAKE2b-256 | e3bdcbcaab915d8a95758149174bb7dc01c01491c1be4dd214eedccdb9c0bfea |