Update sample to reflect final destination in wiki documentation.

This commit is contained in:
Joe Gregorio
2011-03-08 10:54:07 -05:00
parent 493965528a
commit 3157a749cb

View File

@@ -21,12 +21,17 @@ from apiclient.model import LoggingJsonModel
FLAGS = gflags.FLAGS
FLAGS.dump_request_response = True
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def main(argv):
try:
argv = FLAGS(argv)
except gflags.FlagsError, e:
print '%s\\nUsage: %s ARGS\\n%s' % (e, argv[0], FLAGS)
sys.exit(1)
service = build('translate', 'v2',
developerKey='AIzaSyAQIKv_gwnob-YNrXV2stnY86GSGY81Zr0',
model=LoggingJsonModel())