0
@ns_customer_api.route('/')

class CustomerIDApi(Resource):

    def get(self):
    
        region = request.args.get('region') 
        phoneNo = request.args.get('phoneNo')
        return region,phoneNo

class CreateData():

    def take_input_from_return_value(): 
        this_is_not_working = CustomerIDApi().get()
        print(this_is_not_working)

In the above metioned code I want to take input from @ns_customer_api.route('/') and pass it to take_input_from_return_value() function of class CreateData() Note: I am taking region and phoneNo as an input from the url.

Iamgroot
  • 112
  • 7

0 Answers0