def get_client():
"""Creates Pub/Sub client and returns it."""
if not hasattr(client_store, 'client'):
client_store.client = get_client_from_credentials(
GoogleCredentials.get_application_default())
return client_store.client
评论列表
文章目录