Skip to main content

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 .client 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SalesforceClient-1.0.1a1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

SalesforceClient-1.0.1a1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file SalesforceClient-1.0.1a1.tar.gz.

File metadata

  • Download URL: SalesforceClient-1.0.1a1.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

Hashes for SalesforceClient-1.0.1a1.tar.gz
Algorithm Hash digest
SHA256 fbeea2617ab013541b6727b8d3ed98cfa3b2264202c646bb75d327da7754b147
MD5 4cdcd8714db8453226076cac1316d8da
BLAKE2b-256 0e997ce7d26c1777a70b64766fc15e7a0038f192c7eb762ef95a06343ac0db99

See more details on using hashes here.

File details

Details for the file SalesforceClient-1.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: SalesforceClient-1.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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

Hashes for SalesforceClient-1.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 73bd0e2e24d82c95c145400fe8230767cb5fdd0a74041fac3b120951bbad1b53
MD5 f6f268c1340e4b5cee40eeb1e81c8600
BLAKE2b-256 a43684053844b18e51ae51337e9173fd2ffab62544481a39643b05191705bf54

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page