def set_supported_languages(self, order):
        """ Loads currently supported languages from Twitter API \
        and sets them in a given TwitterSearchOrder instance.
        See `Advanced usage <advanced_usage.html>`_ for example

        :param order: A TwitterOrder instance. \
        Can be either TwitterSearchOrder or TwitterUserOrder
        """

        if not isinstance(order, TwitterSearchOrder):
            raise TwitterSearchException(1010)

        r = requests.get(self._base_url + self._lang_url,
                         auth=self.__oauth,
                         proxies={"https": self.__proxy})

        self.__response['meta'] = r.headers
        self.check_http_status(r.status_code)
        self.__response['content'] = r.json()

        order.iso_6391 = []
        for lang in self.__response['content']:
            order.iso_6391.append(lang['code'])
def set_supported_languages ( self , order ) : if not isinstance ( order , TwitterSearchOrder ) : raise TwitterSearchException ( 1010 ) r = requests . get ( self . _base_url + self . _lang_url , auth = self . __oauth , proxies = { "https" : self . __proxy } ) self . __response [ 'meta' ] = r . headers self . check_http_status ( r . status_code ) self . __response [ 'content' ] = r . json ( ) order . iso_6391 = [ ] for lang in self . __response [ 'content' ] : order . iso_6391 . append ( lang [ 'code' ] )
Loads currently supported languages from Twitter API \
        and sets them in a given TwitterSearchOrder instance.
        See `Advanced usage <advanced_usage.html>`_ for example

        :param order: A TwitterOrder instance. \
        Can be either TwitterSearchOrder or TwitterUserOrder