def __init__(self, api_data=None):
        """
            :param api_data:    dictionary containing the credentials for the given platform.
        """
        if api_data == None:
            api_data = api_keys.returnListOfAPIKeys()["twitter"]
        # Processing the results received by parameter
        self.consumer_key= api_data["consumer_key"]
        self.consumer_secret= api_data["consumer_secret"]
        self.access_key= api_data["access_key"]
        self.access_secret = api_data["access_secret"]

        # The platformName, a bit redundant
        self.platformName = "Twitter"
def __init__ ( self , api_data = None ) : if api_data == None : api_data = api_keys . returnListOfAPIKeys ( ) [ "twitter" ] self . consumer_key = api_data [ "consumer_key" ] self . consumer_secret = api_data [ "consumer_secret" ] self . access_key = api_data [ "access_key" ] self . access_secret = api_data [ "access_secret" ] self . platformName = "Twitter"
:param api_data:    dictionary containing the credentials for the given platform.