File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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----------------
You can’t perform that action at this time.
0 commit comments