Skip to content

Commit 20fa567

Browse files
committed
core updates
1 parent fa96740 commit 20fa567

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## initialize the salesforce package
2+
from salesforce import *

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dotenv==0.0.5
44
simple-salesforce==0.69
55
salesforce-oauth-request
66
PyJWT
7-
cryptography
87
pem
98
pymongo
9+
M2Crypto
10+
rsa

salesforce/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
## initialize the salesforce package
2+
##__all__ = ['connect', 'query']
23
from salesforce import *

salesforce/connect.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import os
1+
import os
22
import time
33
import jwt
44
import pem
55
import requests
66
import json
77
import base64
8+
import rsa
89
from calendar import timegm
910
from datetime import datetime, timedelta
1011
from simple_salesforce import Salesforce
@@ -21,10 +22,10 @@ def __init__(self):
2122

2223
self.consumer_key = os.environ.get("SALESFORCE_OAUTH_CONSUMER_TOKEN")
2324
self.consumer_secret = os.environ.get("SALESFORCE_OAUTH_CONSUMER_SECRET")
24-
self.api_domain = os.environ.get("SALESFORCE_API_DOMAIN")
25-
self.access_token_url = os.environ.get("SALESFORCE_ACCESS_TOKEN_URL")
25+
self.access_token_url = os.environ.get("SALESFORCE_ACCESS_TOKEN_URL")
2626
self.username = os.environ.get("SALESFORCE_USER")
2727
self.password = os.environ.get("SALESFORCE_PASSWORD")
28+
self.sf_login = os.environ.get("SALESFORCE_LOGIN")
2829

2930
""" Determines OAuth Grant Type and runs method
3031
returns a dictionary consisinting of an instance_url and access_token

0 commit comments

Comments
 (0)