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.
()
| 15 | |
| 16 | |
| 17 | def 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 | |
| 31 | if __name__ == "__main__": |