heroku / salesforce-bulk

Python interface to the Salesforce.com Bulk API
MIT License
207 stars 154 forks source link

Support JSON Batching fixes #29 #30

Closed godd9170 closed 7 years ago

godd9170 commented 8 years ago

By allowing the post_bulk_batch function to take a content-type parameter you can now send in json batches.

NOTE: JSON is only supported for API "36.0" so make sure you construct SalesforceBulk accordingly.

e.g.

bulk = SalesforceBulk(sessionId=sessionId, host=instance, API_version="36.0")

fixes #29

lambacck commented 7 years ago

Hi @godd9170 I've got a PR with an API incompatible change where the main focus was on supporting JSON. Please see #40.

godd9170 commented 7 years ago

Awesome stuff @lambacck, feel free to close this hasty PR.