https://developers.google.com/hangouts/chat/reference/rest/v1/spaces/list
Я использую это для получения списка всех пространств, где установлен бот, но не могу получить ответ:
Вот фрагмент кода.
credentials = ServiceAccountCredentials.from_json_keyfile_name(
'service-account.json', scopes)
http = Http()
credentials.authorize(http)
chat = build('chat', 'v1', http=http)
res = chat.spaces().list()
print res.body. ----- this gives null
Я что-то здесь упускаю?