コード例 #1
0
 /// <summary>
 /// Opens a direct message channel.
 /// <see href="https://api.slack.com/methods/im.open" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `im:write`
 /// </param>
 /// <param name='returnIm'>
 /// Boolean, indicates you want the full IM channel definition in the response.
 /// </param>
 /// <param name='user'>
 /// User to open a direct message channel with.
 /// </param>
 /// <param name='includeLocale'>
 /// Set this to `true` to receive the locale for this im. Defaults to `false`
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OpenOKResponseModelModel> OpenAsync(this IIm operations, string token = default(string), bool?returnIm = default(bool?), string user = default(string), bool?includeLocale = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.OpenWithHttpMessagesAsync(token, returnIm, user, includeLocale, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }