def get(self, webhookId):
"""Get the details of a webhook, by ID.
Args:
webhookId(basestring): The ID of the webhook to be retrieved.
Returns:
Webhook: A Webhook object with the details of the requested
webhook.
Raises:
TypeError: If the parameter types are incorrect.
SparkApiError: If the Cisco Spark cloud returns an error.
"""
check_type(webhookId, basestring, may_be_none=False)
# API request
json_data = self._session.get('webhooks/' + webhookId)
# Return a Webhook object created from the response JSON data
return Webhook(json_data)
评论列表
文章目录