We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a13466 + 041201c commit e2b44b1Copy full SHA for e2b44b1
1 file changed
docs/user/quickstart.rst
@@ -134,6 +134,21 @@ object.
134
>>> chris_api = WebexTeamsAPI(access_token=chris_at)
135
>>> veronica_api = WebexTeamsAPI(access_token=veronica_at)
136
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
+ )
152
153
Making API Calls
154
----------------
0 commit comments