blob: 328dfbcf4be3fb00f14fa6bb36c9c8615308187e [file] [log] [blame]
Joe Gregorio35139022010-11-04 19:37:43 -04001#!/usr/bin/python2.4
2# -*- coding: utf-8 -*-
3#
4# Copyright 2010 Google Inc. All Rights Reserved.
5
6"""Simple command-line example for Buzz.
7
8Command-line application that retrieves the users
9latest content and then adds a new entry.
10"""
11
12__author__ = 'jcgregorio@google.com (Joe Gregorio)'
13
14from apiclient.discovery import build
15
16import httplib2
17import pickle
18import pprint
19
20# Uncomment the next line to get very detailed logging
21# httplib2.debuglevel = 4
22
23def main():
24
25 p = build("diacritize", "v1", developerKey="AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0")
26 print p.diacritize().corpus().get(
27 lang='ar',
28 last_letter='false',
29 message=u'مثال لتشكيل'
30 ).execute()['diacritized_text']
31
32if __name__ == '__main__':
33 main()