Skip to content

Commit e2b44b1

Browse files
authored
Merge pull request #82 from sQu4rks/feature/oauth_docs
Added oauth to quickstart documentation
2 parents 0a13466 + 041201c commit e2b44b1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/user/quickstart.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@ object.
134134
>>> chris_api = WebexTeamsAPI(access_token=chris_at)
135135
>>> veronica_api = WebexTeamsAPI(access_token=veronica_at)
136136
137+
If you authenticate a user via a OAuth flow you can also initialize a api object
138+
directly by providing the OAuth information.
139+
140+
.. code-block:: python
141+
142+
>>> from webexteamssdk import WebexTeamsAPI
143+
>>> client_id = "<from oauth>"
144+
>>> client_secret = "<from oauth>"
145+
>>> oauth_code = "<from oauth>"
146+
>>> redirect_uri = "<from oauth>"
147+
>>> api = WebexTeamsAPI(client_id=client_id,
148+
client_secret=client_secret,
149+
oauth_code=oauth_code,
150+
redirect_uri=redirect_uri
151+
)
137152
138153
Making API Calls
139154
----------------

0 commit comments

Comments
 (0)