Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint outdated #2

Open
Aleccc opened this issue Jul 25, 2019 · 0 comments
Open

Endpoint outdated #2

Aleccc opened this issue Jul 25, 2019 · 0 comments

Comments

@Aleccc
Copy link

Aleccc commented Jul 25, 2019

I use both this package and simple-salesforce.
This package failed when I first used it, saying that it couldn't make a connection. I leverage simple_salesforce.Salesforce.bulk_url to update SalesforceBulkAPI.endpoint

import os
from simple_salesforce import Salesforce
from sfdc_bulk import SalesforceBulkAPI

from dotenv import load_dotenv  # pip install python-dotenv
load_dotenv()

sf = Salesforce(
        username=os.environ.get('USER'),
        password=os.environ.get('PSWD'),
        security_token=os.environ.get('TOKEN'),
        sandbox=False,
        client_id=os.environ.get('CLIENT_ID'),
        )

sf_bulk = SalesforceBulkAPI(username=os.environ.get('USER'),
                            password=os.environ.get('PSWD'),
                            security_token=os.environ.get('TOKEN'),
                            sandbox=False,
                            )

sf_bulk.endpoint = sf.bulk_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant