![]() ![]() In your working directory, build and run the sample: python3 chat_get_message_attachment.py Spaces/ SPACE/messages/ MESSAGE/attachments/ ATTACHMENT # Print Chat API's response in your command line interface. Name='spaces/ SPACE/messages/ MESSAGE/attachments/ ATTACHMENT' # after creating a message asynchronously with Chat REST API. # Obtain the message name from the response body returned # Obtain the space name from the spaces resource of Chat API, ![]() Result = chat.spaces().messages().attachments().get( # Build the URI and authenticate with the service account.Ĭhat = build('chat', 'v1', http=thorize(Http())) Include the following code in chat_get_message_attachment.py: from httplib2 import Httpįrom rvice_account import ServiceAccountCredentialsĬREDENTIALS = om_json_keyfile_name( In your working directory, create a file named.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |