예제 #1
0
 /// <summary>
 /// Add a comment to an existing file.
 /// <see href="https://api.slack.com/methods/files.comments.add" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `files:write:user`
 /// </param>
 /// <param name='comment'>
 /// Text of the comment to add.
 /// </param>
 /// <param name='file'>
 /// File to add a comment to.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AddOKResponse> AddAsync(this IFiles operations, string token = default(string), string comment = default(string), string file = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddWithHttpMessagesAsync(token, comment, file, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }