コード例 #1
0
 /// <summary>
 /// Creates Teams API client for v1 API.
 /// </summary>
 /// <param name="tokenInfo">Teams API token info.</param>
 /// <returns>Teams API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.TeamsAPIClient CreateVersion1Client(Thrzn41.WebexTeams.Version1.AccessTokenInfo tokenInfo)
 {
     return(new Thrzn41.WebexTeams.Version1.TeamsAPIClient(tokenInfo.AccessToken));
 }
コード例 #2
0
 /// <summary>
 /// Creates Teams Admin API client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="tokenInfo">Teams API token info.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams Admin API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.Admin.TeamsAdminAPIClient CreateVersion1AdminClient(Thrzn41.WebexTeams.Version1.AccessTokenInfo tokenInfo, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(new Thrzn41.WebexTeams.Version1.Admin.TeamsAdminAPIClient(tokenInfo.AccessToken, retryHandler, retryNotificationFunc));
 }