MenuPage / app.py
dschandra's picture
Update app.py
a3cdc16 verified
raw
history blame
713 Bytes
from flask import Flask, jsonify
from simple_salesforce import Salesforce
app = Flask(__name__)
print("Flask app is running...")
# Salesforce credentials
SF_USERNAME = "[email protected]"
SF_PASSWORD = "Sati@1020"
SF_SECURITY_TOKEN = "sSSjyhInIsUohKpG8sHzty2q"
SF_DOMAIN = "login" # Use "test" if using a sandbox
# Connect to Salesforce
sf = Salesforce(username=SF_USERNAME, password=SF_PASSWORD, security_token=SF_SECURITY_TOKEN, domain=SF_DOMAIN)
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/get_menu', methods=['GET'])
def get_menu():
return jsonify({"message": "Menu endpoint is working!"})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=7860, debug=True)