|
from flask import Flask, jsonify |
|
from simple_salesforce import Salesforce |
|
|
|
app = Flask(__name__) |
|
print("Flask app is running...") |
|
|
|
|
|
SF_USERNAME = "[email protected]" |
|
SF_PASSWORD = "Sati@1020" |
|
SF_SECURITY_TOKEN = "sSSjyhInIsUohKpG8sHzty2q" |
|
SF_DOMAIN = "login" |
|
|
|
|
|
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) |
|
|