Skip to content

Releases: forcedotcom/SalesforcePy

2.2.0

21 Mar 16:55
326e6cf

Choose a tag to compare

This release introduces support for OAuth2 Device Flow.

Example implementation

import SalesforcePy as sfdc
import json

def on_authorize(res, authz):
    # Add any required logic to perform on authorization response here
    pass

def on_authenticate(res, authn):
    # Raise an exception if the response was any error other than pending authorization, otherwise return.
    if authn.status != 200 and authn.exceptions[0].get("error") != "authorization_pending":
        raise Exception(json.dumps(res))
    else:
        return

client = sfdc.client(None, None, "<client id here>")

# Note that `on_authorize` and `on_authenticate` handlers are optional but highly recommended, especially
# to ensure authn polling fails out appropriately.
with client.login_via_device_flow(on_authorize=on_authorize, on_authenticate=on_authenticate) as c:
    account = c.query('SELECT Id FROM Account LIMIT 1')

2.0.0

08 Jun 17:10
6b59b5e

Choose a tag to compare

  • PyPi installation fixes
  • Improved exception handling for login requests

1.1.1

24 Apr 13:36
e75ce9c

Choose a tag to compare

  • Documentation revamp
  • Freezing flake8 version

1.1.0

14 Dec 13:51
385aeed

Choose a tag to compare

Supported Bulk API 2.0 calls can be made from SalesforcePy.Client.jobs.ingest.

1.0.3

14 Nov 19:46
ab9806d

Choose a tag to compare

Setup changes

1.0.2

06 Nov 10:03
6c8ba57

Choose a tag to compare

  • Documentation support added

1.0.1

16 Oct 13:30
96eaaa9

Choose a tag to compare

PyPI Readiness (1.0.1)

1.0.0

11 Oct 09:40
9b9cd4d

Choose a tag to compare

Maiden voyage (1.0.0)