Esempio n. 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>
 public static OpenOKResponseModelModel Open(this IIm operations, string token = default(string), bool?returnIm = default(bool?), string user = default(string), bool?includeLocale = default(bool?))
 {
     return(operations.OpenAsync(token, returnIm, user, includeLocale).GetAwaiter().GetResult());
 }