MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / main

Function main

samples/translate/main.py:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def main():
30
31 # Build a service object for interacting with the API. Visit
32 # the Google APIs Console <http://code.google.com/apis/console>
33 # to get an API key for your own application.
34 service = build(
35 "translate", "v2", developerKey="<YOUR DEVELOPER KEY>"
36 )
37 print(
38 service.translations()
39 .list(source="en", target="fr", q=["flower", "car"])
40 .execute()
41 )
42
43
44if __name__ == "__main__":

Callers 1

main.pyFile · 0.70

Calls 2

buildFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…