コード例 #1
0
# -*- 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())
コード例 #2
0
ファイル: tests.py プロジェクト: fvbock/mygengo-python
	def test_getServiceLanguages(self):
		myGengo = MyGengo(public_key = public_key, private_key = private_key, sandbox = SANDBOX)
		resp = myGengo.getServiceLanguages()
		self.assertEqual(resp['opstat'], 'ok')
コード例 #3
0
# -*- 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()
コード例 #4
0
 def test_getServiceLanguages(self):
     myGengo = MyGengo(public_key=public_key,
                       private_key=private_key,
                       sandbox=SANDBOX)
     resp = myGengo.getServiceLanguages()
     self.assertEqual(resp['opstat'], 'ok')
コード例 #5
0
# -*- 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())