Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,25 @@ contain all of the returned objects.
>>> rooms_list = list(rooms_iterable)



Extending the API with bound methods
------------------------------------

As the Webex Teams API is developed and features are added, it may be necessary to extend the webexteamssdk to access those features.
Extending the API is simple by binding your own methods to the WebexTeamsAPI connection object. By binding a method, you can
extend functionality and leverage all of the objects and quality of life features of webexteamssdk.

.. code-block:: python

>>> new_method(self, param):
... json_obj = self._session.get('/example/action/' + param)
... return json_obj

>>> api = WebexTeamsAPI()
>>> api.new_method = new_method
>>> output = WebexTeamsAPI.new_method(param)


*Copyright (c) 2016-2019 Cisco and/or its affiliates.*


Expand Down