コード例 #1
0
 /// <summary>
 /// Gets information about a bot user.
 /// <see href="https://api.slack.com/methods/bots.info" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `users:read`
 /// </param>
 /// <param name='bot'>
 /// Bot user to get info on
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <InfoOKResponseModel> InfoAsync(this IBots operations, string token = default(string), string bot = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.InfoWithHttpMessagesAsync(token, bot, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets information about a bot user.
 /// <see href="https://api.slack.com/methods/bots.info" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `users:read`
 /// </param>
 /// <param name='bot'>
 /// Bot user to get info on
 /// </param>
 public static InfoOKResponseModel Info(this IBots operations, string token = default(string), string bot = default(string))
 {
     return(operations.InfoAsync(token, bot).GetAwaiter().GetResult());
 }