@@ -79,6 +79,30 @@ class Configuration
7979 */
8080 private $ webRtcBasicAuthPassword = 'TODO: Replace ' ;
8181
82+ /**
83+ * The clientId to use for OAuth2
84+ * @var string
85+ */
86+ private $ clientId ;
87+
88+ /**
89+ * The clientSecret to use for OAuth2
90+ * @var string
91+ */
92+ private $ clientSecret ;
93+
94+ /**
95+ * The OAuth2 access token to use for API calls
96+ * @var string
97+ */
98+ private $ accessToken ;
99+
100+ /**
101+ * The expiration time of the access token
102+ * @var int
103+ */
104+ private $ accessTokenExpiration ;
105+
82106 /**
83107 * Current API environment
84108 * @var Environments
@@ -126,6 +150,18 @@ public function __construct($configOptions = null)
126150 if (isset ($ configOptions ['webRtcBasicAuthPassword ' ])) {
127151 $ this ->webRtcBasicAuthPassword = $ configOptions ['webRtcBasicAuthPassword ' ];
128152 }
153+ if (isset ($ configOptions ['clientId ' ])) {
154+ $ this ->clientId = $ configOptions ['clientId ' ];
155+ }
156+ if (isset ($ configOptions ['clientSecret ' ])) {
157+ $ this ->clientSecret = $ configOptions ['clientSecret ' ];
158+ }
159+ if (isset ($ configOptions ['accessToken ' ])) {
160+ $ this ->accessToken = $ configOptions ['accessToken ' ];
161+ }
162+ if (isset ($ configOptions ['accessTokenExpiration ' ])) {
163+ $ this ->accessTokenExpiration = $ configOptions ['accessTokenExpiration ' ];
164+ }
129165 if (isset ($ configOptions ['environment ' ])) {
130166 $ this ->environment = $ configOptions ['environment ' ];
131167 }
@@ -171,6 +207,18 @@ public function getConfigurationMap()
171207 if (isset ($ this ->webRtcBasicAuthPassword )) {
172208 $ configMap ['webRtcBasicAuthPassword ' ] = $ this ->webRtcBasicAuthPassword ;
173209 }
210+ if (isset ($ this ->clientId )) {
211+ $ configMap ['clientId ' ] = $ this ->clientId ;
212+ }
213+ if (isset ($ this ->clientSecret )) {
214+ $ configMap ['clientSecret ' ] = $ this ->clientSecret ;
215+ }
216+ if (isset ($ this ->accessToken )) {
217+ $ configMap ['accessToken ' ] = $ this ->accessToken ;
218+ }
219+ if (isset ($ this ->accessTokenExpiration )) {
220+ $ configMap ['accessTokenExpiration ' ] = $ this ->accessTokenExpiration ;
221+ }
174222 if (isset ($ this ->environment )) {
175223 $ configMap ['environment ' ] = $ this ->environment ;
176224 }
@@ -247,6 +295,42 @@ public function getWebRtcBasicAuthPassword()
247295 return $ this ->webRtcBasicAuthPassword ;
248296 }
249297
298+ // Getter for clientId
299+ public function getClientId ()
300+ {
301+ return $ this ->clientId ;
302+ }
303+
304+ // Getter for clientSecret
305+ public function getClientSecret ()
306+ {
307+ return $ this ->clientSecret ;
308+ }
309+
310+ // Getter for accessToken
311+ public function getAccessToken ()
312+ {
313+ return $ this ->accessToken ;
314+ }
315+
316+ // Setter for accessToken
317+ public function setAccessToken ($ value )
318+ {
319+ $ this ->accessToken = $ value ;
320+ }
321+
322+ // Getter for getAccessTokenExpiration
323+ public function getAccessTokenExpiration ()
324+ {
325+ return $ this ->accessTokenExpiration ;
326+ }
327+
328+ // Setter for accessTokenExpiration
329+ public function setAccessTokenExpiration ($ value )
330+ {
331+ $ this ->accessTokenExpiration = $ value ;
332+ }
333+
250334 // Getter for environment
251335 public function getEnvironment ()
252336 {
0 commit comments