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

Function main

samples/searchforshopping/basic.py:17–28  ·  view source on GitHub ↗

Get and print a feed of all public products available in the United States. Note: The source and country arguments are required to pass to the list method.

()

Source from the content-addressed store, hash-verified

15
16
17def main():
18 """Get and print a feed of all public products available in the
19 United States.
20
21 Note: The source and country arguments are required to pass to the list
22 method.
23 """
24 client = build("shopping", SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
25 resource = client.products()
26 request = resource.list(source="public", country="US")
27 response = request.execute()
28 pprint.pprint(response)
29
30
31if __name__ == "__main__":

Callers 1

basic.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…