Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ import requests
|
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
# ---------------------- CONFIG ----------------------
|
|
|
|
|
|
|
| 6 |
USERNAME = "greenenergy@vedavathi.com"
|
| 7 |
PASSWORD = "Vedavathi@04"+"qe4His8AcuFJucZz5NBHfGU"
|
| 8 |
TOKEN_URL = "https://login.salesforce.com/services/oauth2/token"
|
|
@@ -13,6 +15,8 @@ API_VERSION = "v60.0"
|
|
| 13 |
def get_salesforce_token():
|
| 14 |
data = {
|
| 15 |
"grant_type": "password",
|
|
|
|
|
|
|
| 16 |
"username": "greenenergy@vedavathi.com",
|
| 17 |
"password": "Vedavathi@04"
|
| 18 |
}
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
# ---------------------- CONFIG ----------------------
|
| 6 |
+
CLIENT_ID = "YOUR_CLIENT_ID"
|
| 7 |
+
CLIENT_SECRET = "YOUR_CLIENT_SECRET"
|
| 8 |
USERNAME = "greenenergy@vedavathi.com"
|
| 9 |
PASSWORD = "Vedavathi@04"+"qe4His8AcuFJucZz5NBHfGU"
|
| 10 |
TOKEN_URL = "https://login.salesforce.com/services/oauth2/token"
|
|
|
|
| 15 |
def get_salesforce_token():
|
| 16 |
data = {
|
| 17 |
"grant_type": "password",
|
| 18 |
+
CLIENT_ID = "YOUR_CLIENT_ID"
|
| 19 |
+
CLIENT_SECRET = "YOUR_CLIENT_SECRET"
|
| 20 |
"username": "greenenergy@vedavathi.com",
|
| 21 |
"password": "Vedavathi@04"
|
| 22 |
}
|