# -*- coding: utf-8 -*- #!/usr/bin/python from mygengo import MyGengo from pprint import pprint mygengo = MyGengo(public_key='your public key', private_key='your private key', sandbox=False) # Pretty-print a list of every supported language pprint(mygengo.getServiceLanguages())
def test_getServiceLanguages(self): myGengo = MyGengo(public_key = public_key, private_key = private_key, sandbox = SANDBOX) resp = myGengo.getServiceLanguages() self.assertEqual(resp['opstat'], 'ok')
# -*- coding: utf-8 -*- #!/usr/bin/python from mygengo import MyGengo # Get an instance of MyGengo to work with... gengo = MyGengo( public_key = 'your_public_key', private_key = 'your_private_key', sandbox = True, # possibly false, depending on your dev needs ) # Get a list of every supported language, with their respective language codes. print gengo.getServiceLanguages()
def test_getServiceLanguages(self): myGengo = MyGengo(public_key=public_key, private_key=private_key, sandbox=SANDBOX) resp = myGengo.getServiceLanguages() self.assertEqual(resp['opstat'], 'ok')
# -*- coding: utf-8 -*- #!/usr/bin/python from mygengo import MyGengo from pprint import pprint mygengo = MyGengo( public_key = 'your public key', private_key = 'your private key', sandbox = False ) # Pretty-print a list of every supported language pprint(mygengo.getServiceLanguages())