Skip to content

Commit 9d51961

Browse files
committed
Update attachment_actions.py
Rename the paramater ID parameter in the get() method from `attachmentId` to `id` to be consistent with the documentation.
1 parent 2f2735e commit 9d51961

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

webexteamssdk/api/attachment_actions.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""Webex Teams Messages API wrapper.
2+
"""Webex Teams Attachment Actions API wrapper.
33
44
Copyright (c) 2016-2019 Cisco and/or its affiliates.
55
@@ -106,12 +106,11 @@ def create(self, type, messageId, inputs, **request_parameters):
106106
# Return a attachment action object created from the response JSON data
107107
return self._object_factory(OBJECT_TYPE, json_data)
108108

109-
def get(self, attachmentId):
110-
"""Get the details of a attachment action, by ID.
109+
def get(self, id):
110+
"""Get the details for a attachment action, by ID.
111111
112112
Args:
113-
attachmentId(basestring): The ID of the attachment action to be
114-
retrieved.
113+
id(basestring): A unique identifier for the attachment action.
115114
116115
Returns:
117116
AttachmentAction: A Attachment Action object with the details of
@@ -122,10 +121,10 @@ def get(self, attachmentId):
122121
ApiError: If the Webex Teams cloud returns an error.
123122
124123
"""
125-
check_type(attachmentId, basestring)
124+
check_type(id, basestring)
126125

127126
# API request
128-
json_data = self._session.get(API_ENDPOINT + '/' + attachmentId)
127+
json_data = self._session.get(API_ENDPOINT + '/' + id)
129128

130129
# Return a message object created from the response JSON data
131130
return self._object_factory(OBJECT_TYPE, json_data)

0 commit comments

Comments
 (0)