Sirivennela commited on
Commit
0182a9b
·
verified ·
1 Parent(s): 64829ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,7 +7,7 @@ import simple_salesforce
7
  CLIENT_ID = "3MVG9VMBZCsTL9hnfx2eVMOHa56mwSZnvuAnPr3kVVBEQfeLYvrSfJNRRjjSlKWPLy99XM6kefg=="
8
  CLIENT_SECRET = "6F7E9C95CE20CC07FC1EBD39B34909739D99975A0EEB548240926EA0686E428E"
9
  USERNAME = "greenenergy@vedavathi.com"
10
- PASSWORD = "Vedavathi@04qe4His8AcuFJucZz5NBHfGU" # Keep this as the password (without the security token)
11
  TOKEN_URL = "https://login.salesforce.com/services/oauth2/token" # For production
12
  API_VERSION = "v60.0"
13
 
@@ -15,11 +15,11 @@ API_VERSION = "v60.0"
15
  @st.cache_data
16
  def get_salesforce_token():
17
  data = {
18
- "grant_type": "Vedavathi@04qe4His8AcuFJucZz5NBHfGU", # Corrected grant_type
19
  "client_id": "3MVG9VMBZCsTL9hnfx2eVMOHa56mwSZnvuAnPr3kVVBEQfeLYvrSfJNRRjjSlKWPLy99XM6kefg==",
20
  "client_secret":"6F7E9C95CE20CC07FC1EBD39B34909739D99975A0EEB548240926EA0686E428E" ,
21
  "username":"greenenergy@vedavathi.com" ,
22
- "password":"Vedavathi@04qe4His8AcuFJucZz5NBHfGU" # Correctly concatenate password and security token
23
  }
24
  response = requests.post(TOKEN_URL, data=data)
25
 
 
7
  CLIENT_ID = "3MVG9VMBZCsTL9hnfx2eVMOHa56mwSZnvuAnPr3kVVBEQfeLYvrSfJNRRjjSlKWPLy99XM6kefg=="
8
  CLIENT_SECRET = "6F7E9C95CE20CC07FC1EBD39B34909739D99975A0EEB548240926EA0686E428E"
9
  USERNAME = "greenenergy@vedavathi.com"
10
+ PASSWORD = "Vedavathi@04"+"qe4His8AcuFJucZz5NBHfGU" # Keep this as the password (without the security token)
11
  TOKEN_URL = "https://login.salesforce.com/services/oauth2/token" # For production
12
  API_VERSION = "v60.0"
13
 
 
15
  @st.cache_data
16
  def get_salesforce_token():
17
  data = {
18
+ "grant_type": "Vedavathi@04"+"qe4His8AcuFJucZz5NBHfGU", # Corrected grant_type
19
  "client_id": "3MVG9VMBZCsTL9hnfx2eVMOHa56mwSZnvuAnPr3kVVBEQfeLYvrSfJNRRjjSlKWPLy99XM6kefg==",
20
  "client_secret":"6F7E9C95CE20CC07FC1EBD39B34909739D99975A0EEB548240926EA0686E428E" ,
21
  "username":"greenenergy@vedavathi.com" ,
22
+ "password":"Vedavathi@04"+"qe4His8AcuFJucZz5NBHfGU" # Correctly concatenate password and security token
23
  }
24
  response = requests.post(TOKEN_URL, data=data)
25