Skip to content

Commit

Permalink
Merge pull request #89 from sambyers/master
Browse files Browse the repository at this point in the history
Adding section to quickstart on binding methods to extend sdk
  • Loading branch information
cmlccie committed Oct 26, 2019
2 parents e5552b3 + 10e566c commit ce643de
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit ce643de

Please sign in to comment.