How to fetch request data from flask post request

Solution
import os
from flask import Flask, request
from twilio import twiml
from dotenv import load_dotenv
from twilio.rest import Client
from pyngrok import ngrok
load_dotenv()

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ['TWILIO_ACCOUNT_SID']
auth_token = os.environ['TWILIO_AUTH_TOKEN']

app = Flask(__name__)
twilio_client = Client(account_sid, auth_token)

@app.route("/sms", methods=['GET', 'POST'])
def sms_reply():
    """Fetch message response to extract order data"""
    number = request.form['From'] 
    message_body = request.form['Body']
    resp = twiml.Response()
    resp.message('Hello {}, you said: {}'.format(number, message_body))
    return str(resp)


if __name__ == "__main__":
    app.run(debug=True)