def __call__(self, text, toLang, fromLang=None):
        """
        Attempt translation of a string.  Supports automatic language detection if ``fromLang`` is not specified.

        Args:
            text (str): input text to be translated
            toLang (str): country code of output language
            fromLang (str): country code of input language
        """
        return self.skype.conn("GET", "{0}/skype/translate".format(SkypeConnection.API_TRANSLATE),
                               params={"from": fromLang or "", "to": toLang, "text": text},
                               auth=SkypeConnection.Auth.SkypeToken).json()
def __call__ ( self , text , toLang , fromLang = None ) : return self . skype . conn ( "GET" , "{0}/skype/translate" . format ( SkypeConnection . API_TRANSLATE ) , params = { "from" : fromLang or "" , "to" : toLang , "text" : text } , auth = SkypeConnection . Auth . SkypeToken ) . json ( )
Attempt translation of a string.  Supports automatic language detection if ``fromLang`` is not specified.

        Args:
            text (str): input text to be translated
            toLang (str): country code of output language
            fromLang (str): country code of input language