I have this code:
class CongressApi:
    class apiKeyError(Exception):
        pass
    class Member:
        def __init__(self):
            print("self.makeRequest()?") # want to call the makeRequest function in the external class
    def __init__(self, apiKey):
        self.key = apiKey
    def makeRequest(self, req):
        ret = requests.get(f"https://api.propublica.org/congress/v1/{req}", headers={"X-API-Key": self.key})
        return ret.content
I would like to be able to call that makeRequest() function from inside the memeber class. is this possible?
 
     
    